Spaces:
Build error
Build error
hh
Browse files
app.py
CHANGED
@@ -157,8 +157,8 @@ with gr.Blocks(css="#chatbot {overflow: auto; height:500px;}") as demo:
|
|
157 |
type="password",
|
158 |
info="Step 1: Paste your OpenAI API key here and press Enter↵️"
|
159 |
)
|
160 |
-
with gr.Column(scale=0.2):
|
161 |
-
|
162 |
|
163 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
164 |
state = gr.State([])
|
@@ -190,7 +190,7 @@ with gr.Blocks(css="#chatbot {overflow: auto; height:500px;}") as demo:
|
|
190 |
|
191 |
|
192 |
openai_api_key_textbox.submit(bot.init_agent, [openai_api_key_textbox], [input_raws])
|
193 |
-
enter_apikey.click(bot.init_agent, [openai_api_key_textbox], [input_raws])
|
194 |
txt.submit(bot.run_text, [txt, state], [chatbot, state])
|
195 |
txt.submit(lambda: "", None, txt)
|
196 |
run.click(bot.run_text, [txt, state], [chatbot, state])
|
|
|
157 |
type="password",
|
158 |
info="Step 1: Paste your OpenAI API key here and press Enter↵️"
|
159 |
)
|
160 |
+
#with gr.Column(scale=0.2):
|
161 |
+
# enter_apikey = gr.Button("🔑Enter")
|
162 |
|
163 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
164 |
state = gr.State([])
|
|
|
190 |
|
191 |
|
192 |
openai_api_key_textbox.submit(bot.init_agent, [openai_api_key_textbox], [input_raws])
|
193 |
+
#enter_apikey.click(bot.init_agent, [openai_api_key_textbox], [input_raws])
|
194 |
txt.submit(bot.run_text, [txt, state], [chatbot, state])
|
195 |
txt.submit(lambda: "", None, txt)
|
196 |
run.click(bot.run_text, [txt, state], [chatbot, state])
|