Spaces:
Runtime error
Runtime error
Commit
·
f71b906
1
Parent(s):
de98bbd
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ with gr.Blocks() as demo:
|
|
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)
|
47 |
|
48 |
demo.launch()
|
|
|
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 |
|
48 |
demo.launch()
|