jozzy commited on
Commit
0ba7a96
·
1 Parent(s): bea6a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,9 +70,9 @@ def clear():
70
  with gr.Blocks() as test:
71
  chatbot = gr.Chatbot()
72
  msg = gr.Textbox()
73
- clear = gr.Button("Clear")
74
  msg.submit(textGPT2, [chatbot, msg], chatbot)
75
- clear.click(fn=clear, inputs=None, outputs=chatbot, queue=False)
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")