Akjava commited on
Commit
e9e6104
·
verified ·
1 Parent(s): 7f8769c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -92,7 +92,8 @@ console.log(chatbot)
92
  """
93
  chatbot = gr.Chatbot()
94
  demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
95
- chatbot.change(None,[chatbot],[],js=js)
 
96
 
97
  if __name__ == "__main__":
98
  init()
 
92
  """
93
  chatbot = gr.Chatbot()
94
  demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
95
+ with demo as chat
96
+ chatbot.change(None,[chatbot],[],js=js)
97
 
98
  if __name__ == "__main__":
99
  init()