jdmorzan commited on
Commit
cd2735f
·
verified ·
1 Parent(s): f6aa06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ with gr.Blocks() as demo:
67
  '''
68
  ]])
69
  msg = gr.Textbox()
70
- clear = gr.Button("Clear")
71
  chat_history = []
72
 
73
  def user(query, chat_history):
@@ -89,8 +89,8 @@ with gr.Blocks() as demo:
89
  return gr.update(value=""), chat_history
90
 
91
 
 
92
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False)
93
- clear.click(lambda: None, None, chatbot, queue=False)
94
 
95
  if __name__ == "__main__":
96
  demo.launch()
 
67
  '''
68
  ]])
69
  msg = gr.Textbox()
70
+ submit = gr.Button("Submit")
71
  chat_history = []
72
 
73
  def user(query, chat_history):
 
89
  return gr.update(value=""), chat_history
90
 
91
 
92
+ submit.click(user, [msg, chatbot], [msg, chatbot], queue=False)
93
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False)
 
94
 
95
  if __name__ == "__main__":
96
  demo.launch()