Update app.py
Browse files
app.py
CHANGED
@@ -217,7 +217,7 @@ def Chat_Message(history, messages1):
|
|
217 |
for character in response.content:
|
218 |
history[-1][1] += character
|
219 |
time.sleep(0.0025)
|
220 |
-
yield history
|
221 |
|
222 |
def Internet_Search(history, messages2):
|
223 |
|
@@ -459,8 +459,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
459 |
|
460 |
clear = gr.ClearButton([msg, chatbot, messages1])
|
461 |
|
462 |
-
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], chatbot)
|
463 |
-
submit.click(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], chatbot)
|
464 |
chatbot.like(print_like_dislike, None, None)
|
465 |
|
466 |
with gr.Tab("Internet-Search"):
|
|
|
217 |
for character in response.content:
|
218 |
history[-1][1] += character
|
219 |
time.sleep(0.0025)
|
220 |
+
yield history, messages1
|
221 |
|
222 |
def Internet_Search(history, messages2):
|
223 |
|
|
|
459 |
|
460 |
clear = gr.ClearButton([msg, chatbot, messages1])
|
461 |
|
462 |
+
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
|
463 |
+
submit.click(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
|
464 |
chatbot.like(print_like_dislike, None, None)
|
465 |
|
466 |
with gr.Tab("Internet-Search"):
|