Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ api = HfApi()
|
|
| 5 |
models=[
|
| 6 |
"xai-org/grok-1"
|
| 7 |
]
|
| 8 |
-
gr.Interface.load(f'models/{models[0]}',inputs="text",outputs="text").launch()
|
| 9 |
def load_models(model_in):
|
| 10 |
loaded_model=[]
|
| 11 |
model_details=[]
|
|
@@ -16,7 +15,8 @@ def load_models(model_in):
|
|
| 16 |
similar_models = api.list_models(search=model_in,limit=100,cardData=True)
|
| 17 |
for model in similar_models:
|
| 18 |
try:
|
| 19 |
-
model_load=gr.
|
|
|
|
| 20 |
#out_test=model_load("hello?")
|
| 21 |
loaded_model.append(model_load)
|
| 22 |
except Exception as e:
|
|
|
|
| 5 |
models=[
|
| 6 |
"xai-org/grok-1"
|
| 7 |
]
|
|
|
|
| 8 |
def load_models(model_in):
|
| 9 |
loaded_model=[]
|
| 10 |
model_details=[]
|
|
|
|
| 15 |
similar_models = api.list_models(search=model_in,limit=100,cardData=True)
|
| 16 |
for model in similar_models:
|
| 17 |
try:
|
| 18 |
+
model_load=gr.load(f'models/{model.id}')
|
| 19 |
+
print(model_load)
|
| 20 |
#out_test=model_load("hello?")
|
| 21 |
loaded_model.append(model_load)
|
| 22 |
except Exception as e:
|