Spaces:
Runtime error
Runtime error
Commit ·
709456d
1
Parent(s): 29d71e9
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ chat_history = ['']
|
|
| 27 |
|
| 28 |
|
| 29 |
with gr.Blocks() as demo:
|
| 30 |
-
chatbot = gr.Chatbot(
|
| 31 |
msg = gr.Textbox()
|
| 32 |
clear = gr.ClearButton([msg, chatbot])
|
| 33 |
|
|
@@ -41,7 +41,7 @@ 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
|
| 45 |
|
| 46 |
msg.submit(respond,[msg,chatbot],[msg,chatbot])
|
| 47 |
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
with gr.Blocks() as demo:
|
| 30 |
+
chatbot = gr.Chatbot()
|
| 31 |
msg = gr.Textbox()
|
| 32 |
clear = gr.ClearButton([msg, chatbot])
|
| 33 |
|
|
|
|
| 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 |
|
| 46 |
msg.submit(respond,[msg,chatbot],[msg,chatbot])
|
| 47 |
|