sasha HF Staff commited on
Commit
3558487
·
verified ·
1 Parent(s): 5433a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,14 +53,14 @@ def add_new_eval(
53
 
54
  current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
55
  if repo_id in model_list['model'].tolist():
56
- gr.Markdown('This model has already been run!')
57
  else:
58
  # Is the model info correctly filled?
59
  try:
60
  model_info = API.model_info(repo_id=repo_id)
61
  except Exception:
62
- gr.Markdown("Could not find information for model %s" % (model))
63
- return
64
 
65
  model_size = get_model_size(model_info=model_info)
66
 
 
53
 
54
  current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
55
  if repo_id in model_list['model'].tolist():
56
+ return 'This model has already been run!'
57
  else:
58
  # Is the model info correctly filled?
59
  try:
60
  model_info = API.model_info(repo_id=repo_id)
61
  except Exception:
62
+
63
+ return "Could not find information for model %s" % (model)
64
 
65
  model_size = get_model_size(model_info=model_info)
66