Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ with gr.Blocks() as demo:
|
|
71 |
do_sample = gr.Checkbox(label="Advanced", value=False)
|
72 |
|
73 |
# Advanced settings in an Accordion
|
74 |
-
with gr.Accordion("Advanced Settings", open=
|
75 |
with gr.Row():
|
76 |
max_new_tokens = gr.Slider(label="Max new tokens", value=1269, minimum=550, maximum=3200, step=1)
|
77 |
temperature = gr.Slider(label="Temperature", value=1.2, minimum=0.05, maximum=4.0, step=0.05)
|
|
|
71 |
do_sample = gr.Checkbox(label="Advanced", value=False)
|
72 |
|
73 |
# Advanced settings in an Accordion
|
74 |
+
with gr.Accordion("Advanced Settings", open=lambda do_sample: do_sample):
|
75 |
with gr.Row():
|
76 |
max_new_tokens = gr.Slider(label="Max new tokens", value=1269, minimum=550, maximum=3200, step=1)
|
77 |
temperature = gr.Slider(label="Temperature", value=1.2, minimum=0.05, maximum=4.0, step=0.05)
|