Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,9 +89,9 @@ def submit_eval(model_name, model_tags, web_url, hf_url, code_url, paper_url, in
|
|
89 |
repo_type="dataset",
|
90 |
commit_message=f"Add {model_name} to evaluation queue",
|
91 |
)
|
92 |
-
except error:
|
93 |
os.remove(f"{EVAL_REQUESTS_PATH}/{model_id}.json")
|
94 |
-
return f"Error: {
|
95 |
|
96 |
return "Model submitted successfully π"
|
97 |
|
|
|
89 |
repo_type="dataset",
|
90 |
commit_message=f"Add {model_name} to evaluation queue",
|
91 |
)
|
92 |
+
except error as e:
|
93 |
os.remove(f"{EVAL_REQUESTS_PATH}/{model_id}.json")
|
94 |
+
return f"Error: {e}"
|
95 |
|
96 |
return "Model submitted successfully π"
|
97 |
|