Spaces:
Runtime error
Runtime error
Cap number of evaluations to 10
Browse files
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) >
|
|
|
|
|
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,
|