Nitish Raghav commited on
Commit
8991a78
1 Parent(s): ca722ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -239,16 +239,18 @@ pre {
239
  predict,
240
  [question, system_content, use_api_toggle, chatbot, state],
241
  [chatbot, state],
 
242
  )
243
  submit_btn.click(
244
  predict,
245
  [question, system_content, chatbot, state],
246
  [chatbot, state],
 
247
  )
248
- submit_btn.click(reset_textbox, [], [question])
249
- clear_btn.click(clear_history, None, [chatbot, state, question])
250
- question.submit(reset_textbox, [], [question])
251
- demo.queue(concurrency_count=10, status_update_rate="auto")
252
  #demo.launch(server_name=args.server_name, server_port=args.server_port, share=args.share, debug=args.debug)
253
  demo.launch(share=True, server_name='0.0.0.0')
254
 
 
239
  predict,
240
  [question, system_content, use_api_toggle, chatbot, state],
241
  [chatbot, state],
242
+ concurrency_limit=10
243
  )
244
  submit_btn.click(
245
  predict,
246
  [question, system_content, chatbot, state],
247
  [chatbot, state],
248
+ concurrency_limit=10
249
  )
250
+ submit_btn.click(reset_textbox, [], [question], concurrency_limit=10)
251
+ clear_btn.click(clear_history, None, [chatbot, state, question], concurrency_limit=10)
252
+ question.submit(reset_textbox, [], [question], concurrency_limit=10)
253
+
254
  #demo.launch(server_name=args.server_name, server_port=args.server_port, share=args.share, debug=args.debug)
255
  demo.launch(share=True, server_name='0.0.0.0')
256