Spaces:
Sleeping
Sleeping
ZeroCommand
commited on
Commit
·
78b136d
1
Parent(s):
37729f3
read from old scanners and set in new config file)
Browse files
text_classification_ui_helpers.py
CHANGED
@@ -8,7 +8,12 @@ import gradio as gr
|
|
8 |
import pandas as pd
|
9 |
|
10 |
import leaderboard
|
11 |
-
from io_utils import
|
|
|
|
|
|
|
|
|
|
|
12 |
from run_jobs import save_job_to_pipe
|
13 |
from text_classification import (
|
14 |
strip_model_id_from_url,
|
@@ -438,7 +443,8 @@ def try_submit(m_id, d_id, config, split, inference, inference_token, uid):
|
|
438 |
gr.Info("Your evaluation has been submitted")
|
439 |
|
440 |
new_uid = uuid.uuid4()
|
441 |
-
read_scanners(
|
|
|
442 |
|
443 |
return (
|
444 |
gr.update(interactive=False), # Submit button
|
|
|
8 |
import pandas as pd
|
9 |
|
10 |
import leaderboard
|
11 |
+
from io_utils import (
|
12 |
+
read_column_mapping,
|
13 |
+
write_column_mapping,
|
14 |
+
read_scanners,
|
15 |
+
write_scanners,
|
16 |
+
)
|
17 |
from run_jobs import save_job_to_pipe
|
18 |
from text_classification import (
|
19 |
strip_model_id_from_url,
|
|
|
443 |
gr.Info("Your evaluation has been submitted")
|
444 |
|
445 |
new_uid = uuid.uuid4()
|
446 |
+
scanners = read_scanners(uid)
|
447 |
+
write_scanners(scanners, new_uid)
|
448 |
|
449 |
return (
|
450 |
gr.update(interactive=False), # Submit button
|