Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -168,11 +168,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
168 |
|
169 |
with gr.Accordion("Generation & Chunking Controls", open=False):
|
170 |
with gr.Row():
|
171 |
-
max_chars_slider = gr.Slider(minimum=
|
172 |
repetition_penalty_slider = gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.1, label="Repetition Penalty", info=">1.0 discourages repeated words. Prevents stuttering.")
|
173 |
# --- MODIFICATION: Added the new slider for token multiplier ---
|
174 |
token_multiplier_slider = gr.Slider(
|
175 |
-
minimum=1.0, maximum=4.0, step=0.1, value=
|
176 |
label="Output Token Multiplier",
|
177 |
info="Safety factor for output length. Increase if output is cut off."
|
178 |
)
|
|
|
168 |
|
169 |
with gr.Accordion("Generation & Chunking Controls", open=False):
|
170 |
with gr.Row():
|
171 |
+
max_chars_slider = gr.Slider(minimum=1, maximum=512, step=1, value=36, label="Max Characters per Chunk", info="Splits long lines into smaller pieces for the model.")
|
172 |
repetition_penalty_slider = gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.1, label="Repetition Penalty", info=">1.0 discourages repeated words. Prevents stuttering.")
|
173 |
# --- MODIFICATION: Added the new slider for token multiplier ---
|
174 |
token_multiplier_slider = gr.Slider(
|
175 |
+
minimum=1.0, maximum=4.0, step=0.1, value=2.0,
|
176 |
label="Output Token Multiplier",
|
177 |
info="Safety factor for output length. Increase if output is cut off."
|
178 |
)
|