Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,11 @@ models_to_test = [
|
|
| 29 |
for model_id in models_to_test:
|
| 30 |
try:
|
| 31 |
print(f"π Testing {model_id}...")
|
| 32 |
-
client.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
print(f"β
Accessible: {model_id}\n")
|
| 34 |
except Exception as e:
|
| 35 |
print(f"β Not accessible: {model_id} -> {e}\n")
|
|
|
|
| 29 |
for model_id in models_to_test:
|
| 30 |
try:
|
| 31 |
print(f"π Testing {model_id}...")
|
| 32 |
+
response = client.conversational(
|
| 33 |
+
inputs="Hello! How are you?",
|
| 34 |
+
model=model_id,
|
| 35 |
+
max_new_tokens=20
|
| 36 |
+
)
|
| 37 |
print(f"β
Accessible: {model_id}\n")
|
| 38 |
except Exception as e:
|
| 39 |
print(f"β Not accessible: {model_id} -> {e}\n")
|