Spaces:
Build error
Build error
update
Browse files
app.py
CHANGED
@@ -149,13 +149,15 @@ with gr.Blocks(css="#chatbot {overflow: auto; height:500px;}") as demo:
|
|
149 |
gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
|
150 |
|
151 |
with gr.Row():
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
|
|
|
|
159 |
|
160 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
161 |
state = gr.State([])
|
|
|
149 |
gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
|
150 |
|
151 |
with gr.Row():
|
152 |
+
with gr.Column(scale=0.8):
|
153 |
+
openai_api_key_textbox = gr.Textbox(
|
154 |
+
placeholder="Paste your OpenAI API key here to start Visual ChatGPT(sk-...) and press Enter ↵️",
|
155 |
+
show_label=False,
|
156 |
+
lines=1,
|
157 |
+
type="password",
|
158 |
+
)
|
159 |
+
with gr.Column(scale=0.2):
|
160 |
+
enter_apikey = gr.Button("🔑Enter")
|
161 |
|
162 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
163 |
state = gr.State([])
|