Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -203,7 +203,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
203 |
with gr.Accordion(label="Parameters", open=False, elem_id="parameters-accordion"):
|
204 |
temperature = gr.Slider(
|
205 |
label="Temperature",
|
206 |
-
value=0.
|
207 |
minimum=0.1,
|
208 |
maximum=1.0,
|
209 |
step=0.1,
|
@@ -221,19 +221,19 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
221 |
)
|
222 |
max_new_tokens = gr.Slider(
|
223 |
label="Max new tokens",
|
224 |
-
value=
|
225 |
minimum=0,
|
226 |
maximum=512,
|
227 |
-
step=
|
228 |
interactive=True,
|
229 |
info="The maximum numbers of new tokens",
|
230 |
)
|
231 |
repetition_penalty = gr.Slider(
|
232 |
label="Repetition Penalty",
|
233 |
-
value=1.
|
234 |
minimum=0.0,
|
235 |
-
maximum=
|
236 |
-
step=0.
|
237 |
interactive=True,
|
238 |
info="The parameter for repetition penalty. 1.0 means no penalty.",
|
239 |
)
|
|
|
203 |
with gr.Accordion(label="Parameters", open=False, elem_id="parameters-accordion"):
|
204 |
temperature = gr.Slider(
|
205 |
label="Temperature",
|
206 |
+
value=0.3,
|
207 |
minimum=0.1,
|
208 |
maximum=1.0,
|
209 |
step=0.1,
|
|
|
221 |
)
|
222 |
max_new_tokens = gr.Slider(
|
223 |
label="Max new tokens",
|
224 |
+
value=256,
|
225 |
minimum=0,
|
226 |
maximum=512,
|
227 |
+
step=8,
|
228 |
interactive=True,
|
229 |
info="The maximum numbers of new tokens",
|
230 |
)
|
231 |
repetition_penalty = gr.Slider(
|
232 |
label="Repetition Penalty",
|
233 |
+
value=1.05,
|
234 |
minimum=0.0,
|
235 |
+
maximum=2,
|
236 |
+
step=0.05,
|
237 |
interactive=True,
|
238 |
info="The parameter for repetition penalty. 1.0 means no penalty.",
|
239 |
)
|