lewtun HF staff commited on
Commit
74760ef
β€’
2 Parent(s): 1329a21 d00bc9e

Merge pull request #39 from huggingface/check-username

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -452,7 +452,9 @@ with st.form(key="form"):
452
  submit_button = st.form_submit_button("Evaluate models πŸš€")
453
 
454
  if submit_button:
455
- if len(selected_models) > 10:
 
 
456
  st.warning("Only 10 models can be evaluated at once. Please select fewer models to evaluate.")
457
  elif len(selected_models) > 0 and len(selected_models) <= 10:
458
  project_id = str(uuid.uuid4())[:8]
 
452
  submit_button = st.form_submit_button("Evaluate models πŸš€")
453
 
454
  if submit_button:
455
+ if len(hf_username) == 0:
456
+ st.warning("No πŸ€— Hub username provided! Please enter your username and try again.")
457
+ elif len(selected_models) > 10:
458
  st.warning("Only 10 models can be evaluated at once. Please select fewer models to evaluate.")
459
  elif len(selected_models) > 0 and len(selected_models) <= 10:
460
  project_id = str(uuid.uuid4())[:8]