Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,19 +58,20 @@ df_test .to_parquet("hf://datasets/username/my_dataset/test.parquet")
|
|
| 58 |
|
| 59 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 60 |
text = gr.Textbox(label="Your text 🪶", value=ESSAY)
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
| 74 |
length_unit_selection = gr.Dropdown(
|
| 75 |
choices=[
|
| 76 |
"Character count",
|
|
|
|
| 58 |
|
| 59 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 60 |
text = gr.Textbox(label="Your text 🪶", value=ESSAY)
|
| 61 |
+
with gr.Group():
|
| 62 |
+
split_selection = gr.Dropdown(
|
| 63 |
+
choices=[
|
| 64 |
+
"LangChain's CharacterTextSplitter",
|
| 65 |
+
"Langchain's RecursiveCharacterTextSplitter",
|
| 66 |
+
],
|
| 67 |
+
value="LangChain's CharacterTextSplitter",
|
| 68 |
+
label="Chunking method ",
|
| 69 |
+
info="How should we split our chunks?",
|
| 70 |
+
)
|
| 71 |
+
separator_selection = gr.Textbox(
|
| 72 |
+
value=["\n\n", "\n", ".", " ", ""],
|
| 73 |
+
label="Separators used in RecursiveCharacterTextSplitter",
|
| 74 |
+
)
|
| 75 |
length_unit_selection = gr.Dropdown(
|
| 76 |
choices=[
|
| 77 |
"Character count",
|