change demo value
Browse files
app.py
CHANGED
@@ -93,18 +93,18 @@ if __name__ == '__main__':
|
|
93 |
with gr.Column():
|
94 |
dataset_source = gr.Dropdown(
|
95 |
choices=["hugging_face", "local"],
|
96 |
-
value="
|
97 |
label="dataset [source]"
|
98 |
)
|
99 |
input_path = gr.Textbox(
|
100 |
value='chupei/format-jsonl',
|
101 |
placeholder="please input hugging_face dataset path",
|
102 |
label="input_path",
|
103 |
-
visible=
|
104 |
)
|
105 |
uploaded_file = gr.File(
|
106 |
label="upload file",
|
107 |
-
visible=
|
108 |
)
|
109 |
|
110 |
data_format = gr.Dropdown(
|
@@ -119,6 +119,7 @@ if __name__ == '__main__':
|
|
119 |
|
120 |
rule_list = gr.CheckboxGroup(
|
121 |
choices=rule_options,
|
|
|
122 |
label="rule_list"
|
123 |
)
|
124 |
prompt_list = gr.CheckboxGroup(
|
|
|
93 |
with gr.Column():
|
94 |
dataset_source = gr.Dropdown(
|
95 |
choices=["hugging_face", "local"],
|
96 |
+
value="hugging_face",
|
97 |
label="dataset [source]"
|
98 |
)
|
99 |
input_path = gr.Textbox(
|
100 |
value='chupei/format-jsonl',
|
101 |
placeholder="please input hugging_face dataset path",
|
102 |
label="input_path",
|
103 |
+
visible=True
|
104 |
)
|
105 |
uploaded_file = gr.File(
|
106 |
label="upload file",
|
107 |
+
visible=False
|
108 |
)
|
109 |
|
110 |
data_format = gr.Dropdown(
|
|
|
119 |
|
120 |
rule_list = gr.CheckboxGroup(
|
121 |
choices=rule_options,
|
122 |
+
value=['RuleAbnormalChar', 'RuleAbnormalHtml'],
|
123 |
label="rule_list"
|
124 |
)
|
125 |
prompt_list = gr.CheckboxGroup(
|