lixuejing
commited on
Commit
·
adbce02
1
Parent(s):
aad2d68
fix
Browse files- src/submission/submit.py +3 -3
src/submission/submit.py
CHANGED
@@ -48,6 +48,9 @@ def add_new_eval(
|
|
48 |
if revision == "":
|
49 |
revision = "main"
|
50 |
|
|
|
|
|
|
|
51 |
# Is the model on the hub?
|
52 |
if len(model_api_url)==0:
|
53 |
if weight_type in ["Delta", "Adapter"]:
|
@@ -55,9 +58,6 @@ def add_new_eval(
|
|
55 |
if not base_model_on_hub:
|
56 |
return styled_error(f'Base model "{base_model}" {error}')
|
57 |
|
58 |
-
architecture = "?"
|
59 |
-
downloads = 0
|
60 |
-
created_at = ""
|
61 |
if not weight_type == "Adapter":
|
62 |
model_on_hub, error, model_config = is_model_on_hub(model_name=model, revision=revision, test_tokenizer=True)
|
63 |
if not model_on_hub:
|
|
|
48 |
if revision == "":
|
49 |
revision = "main"
|
50 |
|
51 |
+
architecture = "?"
|
52 |
+
downloads = 0
|
53 |
+
created_at = ""
|
54 |
# Is the model on the hub?
|
55 |
if len(model_api_url)==0:
|
56 |
if weight_type in ["Delta", "Adapter"]:
|
|
|
58 |
if not base_model_on_hub:
|
59 |
return styled_error(f'Base model "{base_model}" {error}')
|
60 |
|
|
|
|
|
|
|
61 |
if not weight_type == "Adapter":
|
62 |
model_on_hub, error, model_config = is_model_on_hub(model_name=model, revision=revision, test_tokenizer=True)
|
63 |
if not model_on_hub:
|