sasha HF Staff commited on
Commit
022c03e
·
verified ·
1 Parent(s): e3cfdf5

Update app.py

Browse files

repo_id not model

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def add_new_eval(
56
  task_model_names = [m.id for m in task_models]
57
  if repo_id in model_list:
58
  return 'This model has already been run!'
59
- if model not in task_model_names:
60
  return "This model isn't compatible with the chosen task! Pick a different model-task combination"
61
  else:
62
  # Is the model info correctly filled?
 
56
  task_model_names = [m.id for m in task_models]
57
  if repo_id in model_list:
58
  return 'This model has already been run!'
59
+ elif repo_id not in task_model_names:
60
  return "This model isn't compatible with the chosen task! Pick a different model-task combination"
61
  else:
62
  # Is the model info correctly filled?