m-ric HF staff commited on
Commit
e304b98
1 Parent(s): 4d61579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -13
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
- split_selection = gr.Dropdown(
62
- choices=[
63
- "LangChain's CharacterTextSplitter",
64
- "Langchain's RecursiveCharacterTextSplitter",
65
- ],
66
- value="LangChain's CharacterTextSplitter",
67
- label="Chunking method ",
68
- info="How should we split our chunks?",
69
- )
70
- separator_selection = gr.Textbox(
71
- value=["\n\n", "\n", ".", " ", ""],
72
- label="Separators used in RecursiveCharacterTextSplitter",
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",