project-baize commited on
Commit
dc9e813
1 Parent(s): 38cd733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -107,8 +107,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
107
  ).style(container=False)
108
  with gr.Column(min_width=70, scale=1):
109
  submitBtn = gr.Button("Send")
110
- with gr.Column(min_width=70, scale=1):
111
- cancelBtn = gr.Button("Stop")
112
 
113
  with gr.Row(scale=1):
114
  emptyBtn = gr.Button(
@@ -188,9 +187,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
188
  )
189
 
190
  # Chatbot
191
- cancelBtn.click(cancel_outputing, [], [ status_display])
192
  transfer_input_args = dict(
193
- fn=transfer_input, inputs=[user_input], outputs=[user_question, user_input, submitBtn, cancelBtn], show_progress=True
194
  )
195
 
196
  user_input.submit(**transfer_input_args).then(**predict_args)
 
107
  ).style(container=False)
108
  with gr.Column(min_width=70, scale=1):
109
  submitBtn = gr.Button("Send")
110
+
 
111
 
112
  with gr.Row(scale=1):
113
  emptyBtn = gr.Button(
 
187
  )
188
 
189
  # Chatbot
 
190
  transfer_input_args = dict(
191
+ fn=transfer_input, inputs=[user_input], outputs=[user_question, user_input, submitBtn], show_progress=True
192
  )
193
 
194
  user_input.submit(**transfer_input_args).then(**predict_args)