Update app.py
Browse files
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
|
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 |
-
#
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
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):
|