Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
b6517de
1
Parent(s):
d1aa6d7
Update app.py
Browse files
app.py
CHANGED
@@ -121,24 +121,23 @@ with gr.Blocks(
|
|
121 |
),
|
122 |
|
123 |
) as demo:
|
124 |
-
|
125 |
"""<h1><center>Chat with gpt-3.5-turbo</center></h1>
|
126 |
This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
|
127 |
"""
|
128 |
)
|
129 |
conversation = Chat()
|
130 |
with gr.Row():
|
131 |
-
with gr.Column(
|
132 |
# to do: change to openaikey input for public release
|
133 |
openai_key = gr.Textbox(
|
134 |
label="OpenAI Key",
|
135 |
-
value="
|
136 |
type="password",
|
137 |
-
placeholder="",
|
138 |
-
|
139 |
-
info="",
|
140 |
)
|
141 |
-
|
142 |
with gr.Row():
|
143 |
with gr.Column():
|
144 |
msg = gr.Textbox(
|
@@ -227,4 +226,4 @@ with gr.Blocks(
|
|
227 |
)
|
228 |
|
229 |
|
230 |
-
demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
|
|
|
121 |
),
|
122 |
|
123 |
) as demo:
|
124 |
+
gr.Markdown(
|
125 |
"""<h1><center>Chat with gpt-3.5-turbo</center></h1>
|
126 |
This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
|
127 |
"""
|
128 |
)
|
129 |
conversation = Chat()
|
130 |
with gr.Row():
|
131 |
+
with gr.Column():
|
132 |
# to do: change to openaikey input for public release
|
133 |
openai_key = gr.Textbox(
|
134 |
label="OpenAI Key",
|
135 |
+
value="",
|
136 |
type="password",
|
137 |
+
placeholder="sk..",
|
138 |
+
info="You have to provide your own OpenAI API key.",
|
|
|
139 |
)
|
140 |
+
chatbot = gr.Chatbot().style(height=400)
|
141 |
with gr.Row():
|
142 |
with gr.Column():
|
143 |
msg = gr.Textbox(
|
|
|
226 |
)
|
227 |
|
228 |
|
229 |
+
demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
|