lewtun HF staff commited on
Commit
4677a77
β€’
1 Parent(s): 18133af
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -443,9 +443,11 @@ with st.form(key="form"):
443
  if submit_button:
444
  if len(hf_username) == 0:
445
  st.warning("No πŸ€— Hub username provided! Please enter your username and try again.")
 
 
446
  elif len(selected_models) > 10:
447
  st.warning("Only 10 models can be evaluated at once. Please select fewer models to evaluate.")
448
- elif len(selected_models) > 0:
449
  # Filter out previsouly evaluated models
450
  selected_models = filter_evaluated_models(
451
  selected_models,
@@ -555,5 +557,3 @@ with st.form(key="form"):
555
  commit_evaluation_log(evaluation_log, hf_access_token=HF_TOKEN)
556
  else:
557
  st.error("πŸ™ˆ Oh no, there was an error submitting your evaluation job!")
558
- else:
559
- st.warning("⚠️ No models were selected for evaluation!")
 
443
  if submit_button:
444
  if len(hf_username) == 0:
445
  st.warning("No πŸ€— Hub username provided! Please enter your username and try again.")
446
+ elif len(selected_models) == 0:
447
+ st.warning("⚠️ No models were selected for evaluation! Please select at least one model and try again.")
448
  elif len(selected_models) > 10:
449
  st.warning("Only 10 models can be evaluated at once. Please select fewer models to evaluate.")
450
+ else:
451
  # Filter out previsouly evaluated models
452
  selected_models = filter_evaluated_models(
453
  selected_models,
 
557
  commit_evaluation_log(evaluation_log, hf_access_token=HF_TOKEN)
558
  else:
559
  st.error("πŸ™ˆ Oh no, there was an error submitting your evaluation job!")