Antoine245 commited on
Commit
e3fc34e
·
1 Parent(s): effe0ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,9 +39,9 @@ with gr.Blocks() as demo:
39
  messages=chat_history
40
  )
41
  bot_message = bot_message.last # Get the last response
42
- chat_history.append((message, bot_message)) # Append the bot's message to the chat history
43
  time.sleep(2)
44
- return "",chat_history
45
 
46
  msg.submit(respond,[msg,chatbot],[msg,chatbot])
47
 
 
39
  messages=chat_history
40
  )
41
  bot_message = bot_message.last # Get the last response
42
+ chat_history.append(bot_message) # Append the bot's message to the chat history
43
  time.sleep(2)
44
+ return message,bot_message
45
 
46
  msg.submit(respond,[msg,chatbot],[msg,chatbot])
47