Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,12 @@ def load_models():
|
|
| 14 |
this = api.list_models(search=model,limit=limit,cardData=True)
|
| 15 |
model_details.append(this)
|
| 16 |
except Exception as e:
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
return loaded_model, model_details
|
| 20 |
with gr.Blocks() as app:
|
| 21 |
with gr.Row():
|
|
|
|
| 14 |
this = api.list_models(search=model,limit=limit,cardData=True)
|
| 15 |
model_details.append(this)
|
| 16 |
except Exception as e:
|
| 17 |
+
loaded_model.append({"ERROR":e})
|
| 18 |
+
try:
|
| 19 |
+
this = api.list_models(search=model,limit=limit,cardData=True)
|
| 20 |
+
model_details.append(this)
|
| 21 |
+
except Exception as ee:
|
| 22 |
+
model_details.append({"ERROR":ee})
|
| 23 |
return loaded_model, model_details
|
| 24 |
with gr.Blocks() as app:
|
| 25 |
with gr.Row():
|