lewtun HF staff commited on
Commit
1cf7c90
β€’
1 Parent(s): 7ec3a4a

Cap number of evaluations to 10

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -440,7 +440,9 @@ with st.form(key="form"):
440
  submit_button = st.form_submit_button("Evaluate models πŸš€")
441
 
442
  if submit_button:
443
- if len(selected_models) > 0:
 
 
444
  project_id = str(uuid.uuid4())[:8]
445
  project_payload = {
446
  "username": AUTOTRAIN_USERNAME,
 
440
  submit_button = st.form_submit_button("Evaluate models πŸš€")
441
 
442
  if submit_button:
443
+ if len(selected_models) > 10:
444
+ st.warning("Only 10 models can be evaluated at once. Please select fewer models to evaluate.")
445
+ elif len(selected_models) > 0 and len(selected_models) <= 10:
446
  project_id = str(uuid.uuid4())[:8]
447
  project_payload = {
448
  "username": AUTOTRAIN_USERNAME,