Spaces:
Runtime error
Runtime error
Commit
·
e3fc34e
1
Parent(s):
effe0ea
Update app.py
Browse files
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(
|
43 |
time.sleep(2)
|
44 |
-
return
|
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 |
|