Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -204,10 +204,11 @@ with gr.Blocks(css=css) as demo:
|
|
204 |
fn=chat_with_openai,
|
205 |
chatbot=chatbot,
|
206 |
fill_height=True,
|
|
|
207 |
additional_inputs=[
|
208 |
-
fast_mode_checkbox, # Use the checkbox directly here
|
209 |
gr.Slider(minimum=0.6, maximum=0.6, step=0.1, value=0.6, label="Temperature", render=False, visible=False),
|
210 |
gr.Slider(minimum=1024, maximum=4096, step=128, value=2048, label="Max new tokens", render=False, visible=False),
|
|
|
211 |
],
|
212 |
examples=[
|
213 |
['What is PrEP, and how do I know if I need it?'],
|
|
|
204 |
fn=chat_with_openai,
|
205 |
chatbot=chatbot,
|
206 |
fill_height=True,
|
207 |
+
additional_inputs_accordion=gr.Accordion(label="Settings", open=False, render=False, visible=False),
|
208 |
additional_inputs=[
|
|
|
209 |
gr.Slider(minimum=0.6, maximum=0.6, step=0.1, value=0.6, label="Temperature", render=False, visible=False),
|
210 |
gr.Slider(minimum=1024, maximum=4096, step=128, value=2048, label="Max new tokens", render=False, visible=False),
|
211 |
+
fast_mode_checkbox,
|
212 |
],
|
213 |
examples=[
|
214 |
['What is PrEP, and how do I know if I need it?'],
|