m-ric HF staff commited on
Commit
1c92e81
โ€ข
1 Parent(s): 67543ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -126,7 +126,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size='lg', font=["monospace"], primary_
126
  LABEL_TEXTSPLITTER,
127
  LABEL_RECURSIVE,
128
  ],
129
- value=LABEL_TEXTSPLITTER,
130
  label="Method to split chunks ๐Ÿž",
131
  )
132
  separators_selection = gr.Textbox(
@@ -134,13 +134,13 @@ with gr.Blocks(theme=gr.themes.Soft(text_size='lg', font=["monospace"], primary_
134
  value=["\n\n", "\n", " ", ""],
135
  info="Separators used in RecursiveCharacterTextSplitter",
136
  show_label=False, # or set label to an empty string if you want to keep its space
137
- visible=False,
138
  )
139
  separator_preset_selection = gr.Radio(
140
  ['Default recursive', 'Python', 'Markdown'],
141
  label="Choose a preset",
142
  info="This will apply a specific set of separators to RecursiveCharacterTextSplitter.",
143
- visible=False,
144
  )
145
  with gr.Row():
146
  length_unit_selection = gr.Dropdown(
 
126
  LABEL_TEXTSPLITTER,
127
  LABEL_RECURSIVE,
128
  ],
129
+ value=LABEL_RECURSIVE,
130
  label="Method to split chunks ๐Ÿž",
131
  )
132
  separators_selection = gr.Textbox(
 
134
  value=["\n\n", "\n", " ", ""],
135
  info="Separators used in RecursiveCharacterTextSplitter",
136
  show_label=False, # or set label to an empty string if you want to keep its space
137
+ visible=True,
138
  )
139
  separator_preset_selection = gr.Radio(
140
  ['Default recursive', 'Python', 'Markdown'],
141
  label="Choose a preset",
142
  info="This will apply a specific set of separators to RecursiveCharacterTextSplitter.",
143
+ visible=True,
144
  )
145
  with gr.Row():
146
  length_unit_selection = gr.Dropdown(