Akjava commited on
Commit
adfb0a2
·
verified ·
1 Parent(s): 4f262bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -86,10 +86,12 @@ def call_generate_text(message, history):
86
  return ""
87
 
88
  js = """
89
- console.log('hello js')
 
 
90
  """
91
  chatbot = gr.Chatbot()
92
-
93
  demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
94
 
95
  if __name__ == "__main__":
 
86
  return ""
87
 
88
  js = """
89
+ function(chatbot){
90
+ console.log(chatbot)
91
+ }
92
  """
93
  chatbot = gr.Chatbot()
94
+ chatbot.change(None,chatbot,[],js=js)
95
  demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
96
 
97
  if __name__ == "__main__":