Skip to content

Commit ac7ac65

Browse files
authored
feat: change huggingface demo default values of datasource and rule list (#59)
1 parent 9f846ab commit ac7ac65

File tree

1 file changed

+4
-3
lines changed
  • examples/app_huggingface

1 file changed

+4
-3
lines changed

examples/app_huggingface/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,18 @@ def update_input_components(dataset_source):
9393
with gr.Column():
9494
dataset_source = gr.Dropdown(
9595
choices=["hugging_face", "local"],
96-
value="local",
96+
value="hugging_face",
9797
label="dataset [source]"
9898
)
9999
input_path = gr.Textbox(
100100
value='chupei/format-jsonl',
101101
placeholder="please input hugging_face dataset path",
102102
label="input_path",
103-
visible=False
103+
visible=True
104104
)
105105
uploaded_file = gr.File(
106106
label="upload file",
107-
visible=True
107+
visible=False
108108
)
109109

110110
data_format = gr.Dropdown(
@@ -119,6 +119,7 @@ def update_input_components(dataset_source):
119119

120120
rule_list = gr.CheckboxGroup(
121121
choices=rule_options,
122+
value=['RuleAbnormalChar', 'RuleAbnormalHtml'],
122123
label="rule_list"
123124
)
124125
prompt_list = gr.CheckboxGroup(

0 commit comments

Comments
 (0)