submit: restore Validating... toast on click
Browse files
submit.py
CHANGED
|
@@ -200,6 +200,16 @@ def handle_submit(
|
|
| 200 |
if form_err is not None:
|
| 201 |
raise gr.Error(form_err)
|
| 202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
zip_path = Path(zip_file.name)
|
| 204 |
|
| 205 |
# The tempdir lives only for the cheap-sync validation pass
|
|
|
|
| 200 |
if form_err is not None:
|
| 201 |
raise gr.Error(form_err)
|
| 202 |
|
| 203 |
+
# Immediate ack on click. The eval itself (after queuing) is the
|
| 204 |
+
# slow part, so hint at the wall time up front so the user knows
|
| 205 |
+
# what to expect instead of waiting on a silent button. Restored
|
| 206 |
+
# after commit ed2a486 dropped the bookend toast in favour of a
|
| 207 |
+
# button-progress tracker.
|
| 208 |
+
gr.Info(
|
| 209 |
+
"Validating submission... evaluation usually takes "
|
| 210 |
+
"~1 minute after queuing."
|
| 211 |
+
)
|
| 212 |
+
|
| 213 |
zip_path = Path(zip_file.name)
|
| 214 |
|
| 215 |
# The tempdir lives only for the cheap-sync validation pass
|