Spaces:
Running
Running
Commit
·
79d57ff
1
Parent(s):
62c4714
Add output and more tips when submit task
Browse files
app.py
CHANGED
|
@@ -191,6 +191,12 @@ def try_submit(m_id, d_id, config, split, column_mappings, local):
|
|
| 191 |
|
| 192 |
logging.info(f"Finished local evaluation exit code {result} on {eval_str}: {time.time() - start:.2f}s")
|
| 193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
| 195 |
with gr.Blocks(theme=theme) as iface:
|
| 196 |
with gr.Row():
|
|
@@ -288,6 +294,9 @@ with gr.Blocks(theme=theme) as iface:
|
|
| 288 |
column_mapping_input,
|
| 289 |
run_local,
|
| 290 |
],
|
|
|
|
|
|
|
|
|
|
| 291 |
)
|
| 292 |
|
| 293 |
iface.queue(max_size=20)
|
|
|
|
| 191 |
|
| 192 |
logging.info(f"Finished local evaluation exit code {result} on {eval_str}: {time.time() - start:.2f}s")
|
| 193 |
|
| 194 |
+
gr.Info(f"Finished local evaluation exit code {result} on {eval_str}: {time.time() - start:.2f}s")
|
| 195 |
+
else:
|
| 196 |
+
gr.Info("TODO: Submit task to an endpoint")
|
| 197 |
+
|
| 198 |
+
return gr.update(interactive=True) # Submit button
|
| 199 |
+
|
| 200 |
|
| 201 |
with gr.Blocks(theme=theme) as iface:
|
| 202 |
with gr.Row():
|
|
|
|
| 294 |
column_mapping_input,
|
| 295 |
run_local,
|
| 296 |
],
|
| 297 |
+
outputs=[
|
| 298 |
+
run_btn,
|
| 299 |
+
],
|
| 300 |
)
|
| 301 |
|
| 302 |
iface.queue(max_size=20)
|