Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
4799797
1
Parent(s):
017359c
Update app.py
Browse files
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 |
-
|
131 |
value="",
|
132 |
type="password",
|
133 |
-
placeholder="sk
|
134 |
-
info="
|
|
|
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 |
-
|
150 |
-
with gr.Accordion("Advanced Options:", open=False):
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
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 "
|