Spaces:
Running
Running
Commit
·
f227810
1
Parent(s):
89d01cf
show log with textbox value
Browse files
text_classification_ui_helpers.py
CHANGED
|
@@ -169,14 +169,13 @@ def try_submit(m_id, d_id, config, split, local, uid):
|
|
| 169 |
|
| 170 |
eval_str = f"[{m_id}]<{d_id}({config}, {split} set)>"
|
| 171 |
logging.info(f"Start local evaluation on {eval_str}")
|
| 172 |
-
# uid = uuid.uuid4()
|
| 173 |
save_job_to_pipe(uid, command, threading.Lock())
|
| 174 |
write_log_to_user_file(uid, f"Start local evaluation on {eval_str}. Please wait for your job to start...\n")
|
| 175 |
gr.Info(f"Start local evaluation on {eval_str}")
|
| 176 |
|
| 177 |
return (
|
| 178 |
gr.update(interactive=False),
|
| 179 |
-
gr.update(lines=5, visible=True, interactive=False))
|
| 180 |
|
| 181 |
else:
|
| 182 |
gr.Info("TODO: Submit task to an endpoint")
|
|
|
|
| 169 |
|
| 170 |
eval_str = f"[{m_id}]<{d_id}({config}, {split} set)>"
|
| 171 |
logging.info(f"Start local evaluation on {eval_str}")
|
|
|
|
| 172 |
save_job_to_pipe(uid, command, threading.Lock())
|
| 173 |
write_log_to_user_file(uid, f"Start local evaluation on {eval_str}. Please wait for your job to start...\n")
|
| 174 |
gr.Info(f"Start local evaluation on {eval_str}")
|
| 175 |
|
| 176 |
return (
|
| 177 |
gr.update(interactive=False),
|
| 178 |
+
gr.update(value=get_logs_file(uid),lines=5, visible=True, interactive=False))
|
| 179 |
|
| 180 |
else:
|
| 181 |
gr.Info("TODO: Submit task to an endpoint")
|