Dagfinn1962 commited on
Commit
07b0800
1 Parent(s): a2ceb95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -151,8 +151,19 @@ with gr.Blocks(
151
  submit = gr.Button("Submit")
152
  stop = gr.Button("Stop")
153
  clear = gr.Button("Clear")
154
-
155
  with gr.Row():
 
 
 
 
 
 
 
 
 
 
 
 
156
  gr.Markdown(
157
  "Disclaimer: The gpt-3.5-turbo model can produce factually incorrect output, and should not be solely relied on to produce "
158
  "factually accurate information. The gpt-3.5-turbo model was trained on various public datasets; while great efforts "
 
151
  submit = gr.Button("Submit")
152
  stop = gr.Button("Stop")
153
  clear = gr.Button("Clear")
 
154
  with gr.Row():
155
+ with gr.Accordion("Advanced Options:", open=False):
156
+ with gr.Row():
157
+ with gr.Column(scale=2):
158
+ system = gr.Textbox(
159
+ label="System Prompt",
160
+ value=Chat.default_system_prompt,
161
+ show_label=False,
162
+ ).style(container=False)
163
+ with gr.Column():
164
+ with gr.Row():
165
+ change = gr.Button("Change System Prompt")
166
+ reset = gr.Button("Reset System Prompt") with gr.Row():
167
  gr.Markdown(
168
  "Disclaimer: The gpt-3.5-turbo model can produce factually incorrect output, and should not be solely relied on to produce "
169
  "factually accurate information. The gpt-3.5-turbo model was trained on various public datasets; while great efforts "