Spaces:
Runtime error
Runtime error
Nathan Habib
commited on
Commit
•
2f6ebf5
1
Parent(s):
12cea14
fix when looking for addapter model in hub
Browse files
app.py
CHANGED
@@ -193,9 +193,10 @@ def add_new_eval(
|
|
193 |
return styled_error(f'Base model "{base_model}" {error}')
|
194 |
|
195 |
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
199 |
|
200 |
print("adding new eval")
|
201 |
|
|
|
193 |
return styled_error(f'Base model "{base_model}" {error}')
|
194 |
|
195 |
|
196 |
+
if not weight_type == "Adapter":
|
197 |
+
model_on_hub, error = is_model_on_hub(model, revision)
|
198 |
+
if not model_on_hub:
|
199 |
+
return styled_error(f'Model "{model}" {error}')
|
200 |
|
201 |
print("adding new eval")
|
202 |
|