m-ric HF staff commited on
Commit
6a12a73
1 Parent(s): eb84d7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -90,18 +90,19 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
90
  value=["\n\n", "\n", ".", " ", ""],
91
  label="Separators used in RecursiveCharacterTextSplitter",
92
  )
93
- length_unit_selection = gr.Dropdown(
94
- choices=[
95
- "Character count",
96
- "Token count",
97
- ],
98
- value="Token count",
99
- label="Length count",
100
- info="How should we count our chunk lengths?",
101
- )
102
- slider_count = gr.Slider(
103
- 20, 500, value=50, label="Count 🧮", info="Chunk size, in the chosen unit."
104
- )
 
105
  out = gr.HighlightedText(
106
  label="Output",
107
  show_legend=True,
 
90
  value=["\n\n", "\n", ".", " ", ""],
91
  label="Separators used in RecursiveCharacterTextSplitter",
92
  )
93
+ with gr.Row():
94
+ length_unit_selection = gr.Dropdown(
95
+ choices=[
96
+ "Character count",
97
+ "Token count",
98
+ ],
99
+ value="Token count",
100
+ label="Length count",
101
+ info="How should we count our chunk lengths?",
102
+ )
103
+ slider_count = gr.Slider(
104
+ 20, 500, value=50, label="Count 🧮", info="Chunk size, in the chosen unit."
105
+ )
106
  out = gr.HighlightedText(
107
  label="Output",
108
  show_legend=True,