megaaziib commited on
Commit
5a7f8bd
1 Parent(s): 5bf5db5

fix gradio update

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -502,6 +502,6 @@ if __name__ == '__main__':
502
  ]
503
  )
504
  if limitation is True:
505
- app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=config.colab)
506
  else:
507
- app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=True)
 
502
  ]
503
  )
504
  if limitation is True:
505
+ app.queue(max_size=20, api_open=config.api).launch(share=config.colab, max_threads=1)
506
  else:
507
+ app.queue(max_size=20, api_open=config.api).launch(share=True, max_threads=1)