lmzjms commited on
Commit
b79129e
1 Parent(s): 8cfe9bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -240,6 +240,8 @@ if __name__ == '__main__':
240
  openai_api_key_textbox.submit(bot.init_agent, [openai_api_key_textbox], [input_raws])
241
  txt.submit(bot.run_text, [txt, state], [chatbot, state, outaudio, show_mel, run_button])
242
  txt.submit(lambda: "", None, txt)
 
 
243
  btn.upload(bot.run_image_or_audio, [btn, state, txt], [chatbot, state, txt, outaudio])
244
  run_button.click(bot.inpainting, [state, outaudio, show_mel], [chatbot, state, show_mel, outaudio, run_button])
245
  clear.click(bot.memory.clear)
 
240
  openai_api_key_textbox.submit(bot.init_agent, [openai_api_key_textbox], [input_raws])
241
  txt.submit(bot.run_text, [txt, state], [chatbot, state, outaudio, show_mel, run_button])
242
  txt.submit(lambda: "", None, txt)
243
+ run.click(bot.run_text, [txt, state], [chatbot, state, outaudio, show_mel, run_button])
244
+ run.click(lambda: "", None, txt)
245
  btn.upload(bot.run_image_or_audio, [btn, state, txt], [chatbot, state, txt, outaudio])
246
  run_button.click(bot.inpainting, [state, outaudio, show_mel], [chatbot, state, show_mel, outaudio, run_button])
247
  clear.click(bot.memory.clear)