Spaces:
Runtime error
Runtime error
Commit
·
e5392f6
1
Parent(s):
7121a7c
Update app.py
Browse files
app.py
CHANGED
@@ -38,10 +38,10 @@ with gr.Blocks() as demo:
|
|
38 |
examples=examples,
|
39 |
messages=chat_history
|
40 |
)
|
41 |
-
bot_message = bot_message
|
42 |
chat_history.append(bot_message) # Append the bot's message to the chat history
|
43 |
time.sleep(2)
|
44 |
-
return bot_message
|
45 |
|
46 |
msg.submit(respond,[msg,chatbot],[msg, chatbot])
|
47 |
|
|
|
38 |
examples=examples,
|
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 bot_message
|
45 |
|
46 |
msg.submit(respond,[msg,chatbot],[msg, chatbot])
|
47 |
|