cdminix commited on
Commit
62bbe51
β€’
1 Parent(s): e59f801

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: {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