Update app.py
Browse files
app.py
CHANGED
@@ -219,6 +219,8 @@ def Chat_Message(history, messages1):
|
|
219 |
time.sleep(0.0025)
|
220 |
yield history
|
221 |
|
|
|
|
|
222 |
def Internet_Search(history):
|
223 |
messages2 = gr.State(messages1_state)
|
224 |
|
@@ -464,8 +466,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
464 |
|
465 |
clear = gr.ClearButton([msg, chatbot])
|
466 |
|
467 |
-
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, chatbot, chatbot)
|
468 |
-
submit.click(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, chatbot, chatbot)
|
469 |
chatbot.like(print_like_dislike, None, None)
|
470 |
|
471 |
with gr.Tab("Internet-Search"):
|
|
|
219 |
time.sleep(0.0025)
|
220 |
yield history
|
221 |
|
222 |
+
return messages1
|
223 |
+
|
224 |
def Internet_Search(history):
|
225 |
messages2 = gr.State(messages1_state)
|
226 |
|
|
|
466 |
|
467 |
clear = gr.ClearButton([msg, chatbot])
|
468 |
|
469 |
+
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
|
470 |
+
submit.click(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
|
471 |
chatbot.like(print_like_dislike, None, None)
|
472 |
|
473 |
with gr.Tab("Internet-Search"):
|