Spaces:
Running
Running
Commit
•
73ca636
1
Parent(s):
f25dac2
Generate new uuid if mission submitted
Browse files
text_classification_ui_helpers.py
CHANGED
@@ -3,6 +3,7 @@ import json
|
|
3 |
import logging
|
4 |
import os
|
5 |
import threading
|
|
|
6 |
|
7 |
import datasets
|
8 |
import gradio as gr
|
@@ -348,6 +349,7 @@ def try_submit(m_id, d_id, config, split, local, inference, inference_token, uid
|
|
348 |
gr.Info(f"Start local evaluation on {eval_str}")
|
349 |
|
350 |
return (
|
351 |
-
gr.update(interactive=False),
|
352 |
gr.update(lines=5, visible=True, interactive=False),
|
|
|
353 |
)
|
|
|
3 |
import logging
|
4 |
import os
|
5 |
import threading
|
6 |
+
import uuid
|
7 |
|
8 |
import datasets
|
9 |
import gradio as gr
|
|
|
349 |
gr.Info(f"Start local evaluation on {eval_str}")
|
350 |
|
351 |
return (
|
352 |
+
gr.update(interactive=False), # Submit button
|
353 |
gr.update(lines=5, visible=True, interactive=False),
|
354 |
+
uuid.uuid4(), # Allocate a new uuid
|
355 |
)
|