Spaces:
Runtime error
Runtime error
Clémentine
commited on
Commit
•
9fc61c1
1
Parent(s):
5fd25b4
fix typo
Browse files- src/submission/submit.py +1 -1
src/submission/submit.py
CHANGED
@@ -66,11 +66,11 @@ def add_new_eval(
|
|
66 |
if not base_model_on_hub:
|
67 |
return styled_error(f'Base model "{base_model}" {error}')
|
68 |
|
|
|
69 |
if not weight_type == "Adapter":
|
70 |
model_on_hub, error, model_config = is_model_on_hub(model_name=model, revision=revision, test_tokenizer=True)
|
71 |
if not model_on_hub:
|
72 |
return styled_error(f'Model "{model}" {error}')
|
73 |
-
architecture = "?"
|
74 |
if model_config is not None:
|
75 |
architectures = getattr(model_config, "architectures", None)
|
76 |
if architectures:
|
|
|
66 |
if not base_model_on_hub:
|
67 |
return styled_error(f'Base model "{base_model}" {error}')
|
68 |
|
69 |
+
architecture = "?"
|
70 |
if not weight_type == "Adapter":
|
71 |
model_on_hub, error, model_config = is_model_on_hub(model_name=model, revision=revision, test_tokenizer=True)
|
72 |
if not model_on_hub:
|
73 |
return styled_error(f'Model "{model}" {error}')
|
|
|
74 |
if model_config is not None:
|
75 |
architectures = getattr(model_config, "architectures", None)
|
76 |
if architectures:
|