Spaces:
Runtime error
Runtime error
Commit
·
9348c62
1
Parent(s):
efce02d
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
29 |
chatbot = gr.Chatbot()
|
30 |
msg = gr.Textbox()
|
31 |
btn = gr.Button("Submit",variant="primary")
|
32 |
-
|
|
|
33 |
|
34 |
|
35 |
def user(user_message, history):
|
@@ -55,7 +56,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
55 |
bot, chatbot, chatbot
|
56 |
)
|
57 |
response.then(lambda: gr.update(interactive=True), None, [msg], queue=False)
|
58 |
-
clear.click(lambda: None, None, chatbot, queue=False)
|
59 |
|
60 |
demo.queue()
|
61 |
demo.launch()
|
|
|
29 |
chatbot = gr.Chatbot()
|
30 |
msg = gr.Textbox()
|
31 |
btn = gr.Button("Submit",variant="primary")
|
32 |
+
gr.ClearButton([msg, chatbot], scale=1)
|
33 |
+
# clear = gr.Button("Clear")
|
34 |
|
35 |
|
36 |
def user(user_message, history):
|
|
|
56 |
bot, chatbot, chatbot
|
57 |
)
|
58 |
response.then(lambda: gr.update(interactive=True), None, [msg], queue=False)
|
59 |
+
# clear.click(lambda: None, None, chatbot, queue=False)
|
60 |
|
61 |
demo.queue()
|
62 |
demo.launch()
|