mou3az commited on
Commit
1345109
1 Parent(s): 9d8281b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -217,8 +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
- yield messages1
222
 
223
  def Internet_Search(history, messages2):
224
 
@@ -458,7 +457,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
458
  msg = gr.Textbox(show_label=False, placeholder="Type a message...", scale=10, container=False)
459
  submit = gr.Button("➡️Send", scale=1)
460
 
461
- clear = gr.ClearButton([msg, chatbot])
462
 
463
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
464
  submit.click(user, [msg, chatbot], [msg, chatbot], queue=True).then(Chat_Message, [chatbot,messages1], [chatbot,messages1])
 
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
 
 
457
  msg = gr.Textbox(show_label=False, placeholder="Type a message...", scale=10, container=False)
458
  submit = gr.Button("➡️Send", scale=1)
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])