chasetank commited on
Commit
00a12d2
·
1 Parent(s): b581c14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -145,13 +145,7 @@ bot = ConversationBot({'Text2Image': 'cuda:0',
145
  with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
146
  gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
147
 
148
- with gr.Row():
149
- openai_api_key_textbox = gr.Textbox(
150
- placeholder="Paste your OpenAI API key here to start Visual ChatGPT(sk-...) and press Enter ↵️",
151
- show_label=False,
152
- lines=1,
153
- type="password",
154
- )
155
 
156
  chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
157
  state = gr.State([])
@@ -186,7 +180,7 @@ with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
186
  </center>''')
187
 
188
 
189
-
190
  txt.submit(bot.run_text, [txt, state], [chatbot, state])
191
  txt.submit(lambda: "", None, txt)
192
  run.click(bot.run_text, [txt, state], [chatbot, state])
 
145
  with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
146
  gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
147
 
148
+
 
 
 
 
 
 
149
 
150
  chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
151
  state = gr.State([])
 
180
  </center>''')
181
 
182
 
183
+ bot.init_agent()
184
  txt.submit(bot.run_text, [txt, state], [chatbot, state])
185
  txt.submit(lambda: "", None, txt)
186
  run.click(bot.run_text, [txt, state], [chatbot, state])