Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
34 |
chatbot = gr.Chatbot()
|
35 |
message = gr.Textbox(label="What would you like to chat about?")
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
clear = gr.Button(value="Clear Chat")
|
40 |
|
41 |
""" gr.Examples(
|
42 |
examples=[
|
@@ -50,7 +49,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
50 |
def respond(message, chat_history):
|
51 |
bot_message = ["How are you?"]
|
52 |
chat_history.append((message, bot_message))
|
53 |
-
return
|
54 |
|
55 |
message.click(respond, [message, chatbot])
|
56 |
|
|
|
34 |
chatbot = gr.Chatbot()
|
35 |
message = gr.Textbox(label="What would you like to chat about?")
|
36 |
|
37 |
+
submit = gr.Button(value="Send")
|
38 |
+
clear = gr.Button(value="Clear Chat")
|
|
|
39 |
|
40 |
""" gr.Examples(
|
41 |
examples=[
|
|
|
49 |
def respond(message, chat_history):
|
50 |
bot_message = ["How are you?"]
|
51 |
chat_history.append((message, bot_message))
|
52 |
+
return chat_history
|
53 |
|
54 |
message.click(respond, [message, chatbot])
|
55 |
|