Tonic commited on
Commit
26b842b
1 Parent(s): c5ff21b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ with gr.Blocks() as demo:
67
  system_message = gr.Textbox(label="Introduce a Character Here or Set a Scene (system prompt)", lines=2)
68
  with gr.Row():
69
  do_sample = gr.Checkbox(label="Advanced", value=False)
70
- with gr.Row(visible=do_sample):
71
  max_new_tokens = gr.Slider(label="Max new tokens", value=1269, minimum=550, maximum=3200, step=1)
72
  temperature = gr.Slider(label="Temperature", value=1.2, minimum=0.05, maximum=4.0, step=0.05)
73
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99, step=0.05)
 
67
  system_message = gr.Textbox(label="Introduce a Character Here or Set a Scene (system prompt)", lines=2)
68
  with gr.Row():
69
  do_sample = gr.Checkbox(label="Advanced", value=False)
70
+ with gr.Row(visible=lambda do_sample: do_sample):
71
  max_new_tokens = gr.Slider(label="Max new tokens", value=1269, minimum=550, maximum=3200, step=1)
72
  temperature = gr.Slider(label="Temperature", value=1.2, minimum=0.05, maximum=4.0, step=0.05)
73
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99, step=0.05)