Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,10 +86,12 @@ def call_generate_text(message, history):
|
|
86 |
return ""
|
87 |
|
88 |
js = """
|
89 |
-
|
|
|
|
|
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__":
|