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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,13 +53,13 @@ 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
- print('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
- print("Could not find information for model %s" % (model))
63
  return
64
 
65
  model_size = get_model_size(model_info=model_info)
 
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)