Spaces:
Runtime error
Runtime error
Merge pull request #39 from huggingface/check-username
Browse files
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(
|
|
|
|
|
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]
|