Spaces:
Runtime error
Runtime error
Refactor
Browse files
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 |
-
|
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!")
|
|
|
|