Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def check_model_access(models):
|
|
50 |
for model in models:
|
51 |
try:
|
52 |
client = InferenceClient(model=model, token=HF_TOKEN)
|
53 |
-
_ = client.text_to_image("test prompt"
|
54 |
results += f"✅ {model} is working.\n"
|
55 |
except Exception as e:
|
56 |
results += f"❌ {model} failed: {str(e).splitlines()[0]}\n"
|
|
|
50 |
for model in models:
|
51 |
try:
|
52 |
client = InferenceClient(model=model, token=HF_TOKEN)
|
53 |
+
_ = client.text_to_image("test prompt")
|
54 |
results += f"✅ {model} is working.\n"
|
55 |
except Exception as e:
|
56 |
results += f"❌ {model} failed: {str(e).splitlines()[0]}\n"
|