Dagfinn1962 commited on
Commit
4799797
1 Parent(s): 017359c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -127,11 +127,12 @@ with gr.Blocks(
127
  with gr.Column():
128
  # to do: change to openaikey input for public release
129
  openai_key = gr.Textbox(
130
- label="OpenAI Key",
131
  value="",
132
  type="password",
133
- placeholder="sk..",
134
- info="You have to provide your own OpenAI API key.",
 
135
  )
136
  chatbot = gr.Chatbot().style(height=400)
137
  with gr.Row():
@@ -146,19 +147,19 @@ with gr.Blocks(
146
  submit = gr.Button("Submit")
147
  stop = gr.Button("Stop")
148
  clear = gr.Button("Clear")
149
- with gr.Row():
150
- with gr.Accordion("Advanced Options:", open=False):
151
- with gr.Row():
152
- with gr.Column(scale=2):
153
- system = gr.Textbox(
154
- label="System Prompt",
155
- value=Chat.default_system_prompt,
156
- show_label=False,
157
- ).style(container=False)
158
- with gr.Column():
159
- with gr.Row():
160
- change = gr.Button("Change System Prompt")
161
- reset = gr.Button("Reset System Prompt")
162
  with gr.Row():
163
  gr.Markdown(
164
  "Disclaimer: The gpt-3.5-turbo model can produce factually incorrect output, and should not be solely relied on to produce "
 
127
  with gr.Column():
128
  # to do: change to openaikey input for public release
129
  openai_key = gr.Textbox(
130
+ input="",
131
  value="",
132
  type="password",
133
+ placeholder="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",
134
+ info="",
135
+
136
  )
137
  chatbot = gr.Chatbot().style(height=400)
138
  with gr.Row():
 
147
  submit = gr.Button("Submit")
148
  stop = gr.Button("Stop")
149
  clear = gr.Button("Clear")
150
+ # with gr.Row():
151
+ # with gr.Accordion("Advanced Options:", open=False):
152
+ # with gr.Row():
153
+ # with gr.Column(scale=2):
154
+ # system = gr.Textbox(
155
+ # label="System Prompt",
156
+ # value=Chat.default_system_prompt,
157
+ # show_label=False,
158
+ # ).style(container=False)
159
+ # with gr.Column():
160
+ # with gr.Row():
161
+ # change = gr.Button("Change System Prompt")
162
+ # reset = gr.Button("Reset System Prompt")
163
  with gr.Row():
164
  gr.Markdown(
165
  "Disclaimer: The gpt-3.5-turbo model can produce factually incorrect output, and should not be solely relied on to produce "