Spaces:
Runtime error
Runtime error
no validation split
Browse files- src/global_variables.py +2 -2
- src/label_interface.py +1 -1
- src/sample_interface.py +1 -1
- src/vote_interface.py +1 -1
src/global_variables.py
CHANGED
|
@@ -26,7 +26,7 @@ def setup():
|
|
| 26 |
repo_type="dataset",
|
| 27 |
)
|
| 28 |
all_metadata = {}
|
| 29 |
-
for split in ["train", "
|
| 30 |
all_metadata[split] = []
|
| 31 |
with jsonlines.open(f"{ASSETS_FOLDER}/{DATASET_NAME}/data/{split}/metadata.jsonl") as reader:
|
| 32 |
for row in reader:
|
|
@@ -117,7 +117,7 @@ def save_current_work(
|
|
| 117 |
json.dump(new_votes[key], f)
|
| 118 |
all_votes = new_votes
|
| 119 |
new_metadata = {}
|
| 120 |
-
for split in ["train", "
|
| 121 |
new_metadata[split] = []
|
| 122 |
with jsonlines.open(f"{ASSETS_FOLDER}/{DATASET_NAME}/data/{split}/metadata.jsonl") as reader:
|
| 123 |
for row in reader:
|
|
|
|
| 26 |
repo_type="dataset",
|
| 27 |
)
|
| 28 |
all_metadata = {}
|
| 29 |
+
for split in ["train", "test"]:
|
| 30 |
all_metadata[split] = []
|
| 31 |
with jsonlines.open(f"{ASSETS_FOLDER}/{DATASET_NAME}/data/{split}/metadata.jsonl") as reader:
|
| 32 |
for row in reader:
|
|
|
|
| 117 |
json.dump(new_votes[key], f)
|
| 118 |
all_votes = new_votes
|
| 119 |
new_metadata = {}
|
| 120 |
+
for split in ["train", "test"]:
|
| 121 |
new_metadata[split] = []
|
| 122 |
with jsonlines.open(f"{ASSETS_FOLDER}/{DATASET_NAME}/data/{split}/metadata.jsonl") as reader:
|
| 123 |
for row in reader:
|
src/label_interface.py
CHANGED
|
@@ -117,7 +117,7 @@ with gr.Blocks() as interface:
|
|
| 117 |
with gr.Row():
|
| 118 |
split = gr.Radio(
|
| 119 |
label="Split",
|
| 120 |
-
choices=["train", "
|
| 121 |
value="train",
|
| 122 |
)
|
| 123 |
sample_type = gr.Radio(
|
|
|
|
| 117 |
with gr.Row():
|
| 118 |
split = gr.Radio(
|
| 119 |
label="Split",
|
| 120 |
+
choices=["train", "test"],
|
| 121 |
value="train",
|
| 122 |
)
|
| 123 |
sample_type = gr.Radio(
|
src/sample_interface.py
CHANGED
|
@@ -104,7 +104,7 @@ with gr.Blocks() as interface:
|
|
| 104 |
)
|
| 105 |
split = gr.Radio(
|
| 106 |
label="Split",
|
| 107 |
-
choices=["train", "
|
| 108 |
value="train",
|
| 109 |
)
|
| 110 |
index = gr.Textbox(
|
|
|
|
| 104 |
)
|
| 105 |
split = gr.Radio(
|
| 106 |
label="Split",
|
| 107 |
+
choices=["train", "test"],
|
| 108 |
value="train",
|
| 109 |
)
|
| 110 |
index = gr.Textbox(
|
src/vote_interface.py
CHANGED
|
@@ -28,7 +28,7 @@ with gr.Blocks() as interface:
|
|
| 28 |
)
|
| 29 |
split = gr.Radio(
|
| 30 |
label="Split",
|
| 31 |
-
choices=["train", "
|
| 32 |
value="train",
|
| 33 |
)
|
| 34 |
|
|
|
|
| 28 |
)
|
| 29 |
split = gr.Radio(
|
| 30 |
label="Split",
|
| 31 |
+
choices=["train", "test"],
|
| 32 |
value="train",
|
| 33 |
)
|
| 34 |
|