Michael Rabinovich Cursor commited on
Commit ·
770de2c
1
Parent(s): f4b0f2f
submit: raise concurrency_limit to 16 so submissions run in parallel
Browse fileshandle_submit blocks for the whole eval (dispatch + poll). With Gradio's
default concurrency of 1, submissions serialized and a single stuck eval froze
the Submit button for everyone. Allow up to 16 concurrent.
Co-authored-by: Cursor <cursoragent@cursor.com>
app.py
CHANGED
|
@@ -1208,6 +1208,10 @@ pose, and a local self-check), see
|
|
| 1208 |
fn=handle_submit,
|
| 1209 |
inputs=[zip_in],
|
| 1210 |
outputs=[submit_status],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1211 |
)
|
| 1212 |
|
| 1213 |
with gr.Tab("About"):
|
|
|
|
| 1208 |
fn=handle_submit,
|
| 1209 |
inputs=[zip_in],
|
| 1210 |
outputs=[submit_status],
|
| 1211 |
+
# handle_submit blocks for the whole eval (dispatch + poll), so the
|
| 1212 |
+
# default concurrency of 1 serializes all submissions and a single
|
| 1213 |
+
# stuck eval freezes Submit for everyone. Allow many in parallel.
|
| 1214 |
+
concurrency_limit=16,
|
| 1215 |
)
|
| 1216 |
|
| 1217 |
with gr.Tab("About"):
|