dx2102 commited on
Commit
3fbec8a
·
verified ·
1 Parent(s): fdaec02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ with gr.Blocks() as demo:
152
  submit_event = submit_btn.click(user_fn, [prefix_box, chatbot_box], [prefix_box, chatbot_box], queue=False).then(
153
  bot_fn, chatbot_box, chatbot_box
154
  )
155
- clear_btn.click(lambda: None, inputs=[], outputs=chatbot_box, cancels=[submit_event], queue=False)
156
 
157
  def get_audio_fn(history):
158
  i = random.randint(0, 1000_000_000)
 
152
  submit_event = submit_btn.click(user_fn, [prefix_box, chatbot_box], [prefix_box, chatbot_box], queue=False).then(
153
  bot_fn, chatbot_box, chatbot_box
154
  )
155
+ # clear_btn.click(lambda: None, inputs=[], outputs=chatbot_box, cancels=[submit_event], queue=False)
156
 
157
  def get_audio_fn(history):
158
  i = random.randint(0, 1000_000_000)