Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,9 +70,9 @@ def clear():
|
|
70 |
with gr.Blocks() as test:
|
71 |
chatbot = gr.Chatbot()
|
72 |
msg = gr.Textbox()
|
73 |
-
|
74 |
msg.submit(textGPT2, [chatbot, msg], chatbot)
|
75 |
-
|
76 |
|
77 |
|
78 |
text = gr.Interface(fn=textGPT, inputs="text", outputs="text")
|
|
|
70 |
with gr.Blocks() as test:
|
71 |
chatbot = gr.Chatbot()
|
72 |
msg = gr.Textbox()
|
73 |
+
clear_btn = gr.Button("Clear")
|
74 |
msg.submit(textGPT2, [chatbot, msg], chatbot)
|
75 |
+
clear_btn.click(fn=clear, inputs=None, outputs=chatbot, queue=False)
|
76 |
|
77 |
|
78 |
text = gr.Interface(fn=textGPT, inputs="text", outputs="text")
|