Spaces:
Running
Running
Update app.py
Browse files
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=
|
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=
|
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=
|
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(
|