ysharma HF Staff commited on
Commit
688c4db
·
verified ·
1 Parent(s): 9c8e2dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
58
  text = gr.Textbox(scale=9)
59
  btn = gr.Button(scale=1)
60
  btn.click(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
61
- text.submit(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text))
62
 
63
  if __name__ == "__main__":
64
  demo.launch()
 
58
  text = gr.Textbox(scale=9)
59
  btn = gr.Button(scale=1)
60
  btn.click(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
61
+ text.submit(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
62
 
63
  if __name__ == "__main__":
64
  demo.launch()