Spaces:
Runtime error
Runtime error
Merge pull request #29 from huggingface/add-model-limit
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,
|