lixuejing
commited on
Commit
·
9c110ed
1
Parent(s):
a9e02c1
update
Browse files- src/submission/submit.py +4 -3
src/submission/submit.py
CHANGED
@@ -40,8 +40,9 @@ def add_new_eval(
|
|
40 |
precision = precision.split(" ")[0]
|
41 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
42 |
|
43 |
-
if model_type is None
|
44 |
-
|
|
|
45 |
|
46 |
# Does the model actually exist?
|
47 |
if revision == "":
|
@@ -64,7 +65,7 @@ def add_new_eval(
|
|
64 |
model_info = API.model_info(repo_id=model, revision=revision)
|
65 |
except Exception:
|
66 |
return styled_error("Could not get your model information. Please fill it up properly.")
|
67 |
-
|
68 |
model_size = get_model_size(model_info=model_info, precision=precision)
|
69 |
|
70 |
# Were the model card and license filled?
|
|
|
40 |
precision = precision.split(" ")[0]
|
41 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
42 |
|
43 |
+
if model_type is None:
|
44 |
+
model_type == "":
|
45 |
+
#return styled_error("Please select a model type.")
|
46 |
|
47 |
# Does the model actually exist?
|
48 |
if revision == "":
|
|
|
65 |
model_info = API.model_info(repo_id=model, revision=revision)
|
66 |
except Exception:
|
67 |
return styled_error("Could not get your model information. Please fill it up properly.")
|
68 |
+
print("model_info", model_info)
|
69 |
model_size = get_model_size(model_info=model_info, precision=precision)
|
70 |
|
71 |
# Were the model card and license filled?
|