Spaces:
Running
Running
Update app.py
Browse filesrepo_id not model
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 |
-
|
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?
|