AvaLovelace commited on
Commit
a193384
·
1 Parent(s): 3540a1d

Add max size to queue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -87,7 +87,8 @@ def main():
87
  )
88
 
89
  concurrency_limit = 2 if os.environ.get('CONCURRENCY_LIMIT') is None else int(os.environ.get('CONCURRENCY_LIMIT'))
90
- demo.queue(default_concurrency_limit=concurrency_limit)
 
91
  demo.launch(share=True)
92
 
93
 
 
87
  )
88
 
89
  concurrency_limit = 2 if os.environ.get('CONCURRENCY_LIMIT') is None else int(os.environ.get('CONCURRENCY_LIMIT'))
90
+ max_size = 5 if os.environ.get('MAX_QUEUE_SIZE') is None else int(os.environ.get('MAX_QUEUE_SIZE'))
91
+ demo.queue(default_concurrency_limit=concurrency_limit, max_size=max_size)
92
  demo.launch(share=True)
93
 
94