Spaces:
Runtime error
Runtime error
Commit
·
effe0ea
1
Parent(s):
3c4aaa6
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
|
|
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 "",chat_history
|
45 |
|
|
|
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 |
|