harpreetsahota commited on
Commit
6771c8e
·
verified ·
1 Parent(s): c99bb54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -116,7 +116,7 @@ with gr.Blocks() as demo:
116
  override_params = gr.Checkbox(
117
  label="Override Template Parameters",
118
  value=False,
119
- visible=False # Initially hidden
120
  )
121
 
122
  max_tokens = gr.Slider(
@@ -162,13 +162,14 @@ with gr.Blocks() as demo:
162
  # Parameters and Prompt Details section below the chat
163
  with gr.Row():
164
  with gr.Column():
165
- # Make override params visible here
166
- override_params.visible = True
167
-
168
- with gr.Column(visible=False) as param_controls:
169
- max_tokens.visible = True
170
- temperature.visible = True
171
- top_p.visible = True
 
172
 
173
  with gr.Column():
174
  with gr.Accordion("Current Prompt Details", open=False):
 
116
  override_params = gr.Checkbox(
117
  label="Override Template Parameters",
118
  value=False,
119
+ visible=False
120
  )
121
 
122
  max_tokens = gr.Slider(
 
162
  # Parameters and Prompt Details section below the chat
163
  with gr.Row():
164
  with gr.Column():
165
+ # Parameter Controls in Accordion
166
+ with gr.Accordion("Generation Parameters", open=False):
167
+ override_params.visible = True
168
+
169
+ with gr.Column(visible=False) as param_controls:
170
+ max_tokens.visible = True
171
+ temperature.visible = True
172
+ top_p.visible = True
173
 
174
  with gr.Column():
175
  with gr.Accordion("Current Prompt Details", open=False):