Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,8 @@ def load_models(model_in):
|
|
| 21 |
for model in similar_models:
|
| 22 |
|
| 23 |
try:
|
| 24 |
-
|
|
|
|
| 25 |
except Exception as e:
|
| 26 |
loaded_model.append({"MODEL":model.id,"ERROR":e})
|
| 27 |
try:
|
|
|
|
| 21 |
for model in similar_models:
|
| 22 |
|
| 23 |
try:
|
| 24 |
+
model_path=f'models/{model.id}'
|
| 25 |
+
loaded_model.append(gr.load(model_path,cache_examples=False).stdout)
|
| 26 |
except Exception as e:
|
| 27 |
loaded_model.append({"MODEL":model.id,"ERROR":e})
|
| 28 |
try:
|