Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def test_models():
|
|
20 |
log_box=[]
|
21 |
for model in models:
|
22 |
try:
|
23 |
-
|
24 |
outp=client.text_generation("What is a cat")
|
25 |
log = {"Model":model,"Success":outp}
|
26 |
print(log)
|
|
|
20 |
log_box=[]
|
21 |
for model in models:
|
22 |
try:
|
23 |
+
client= InferenceClient(model)
|
24 |
outp=client.text_generation("What is a cat")
|
25 |
log = {"Model":model,"Success":outp}
|
26 |
print(log)
|