guardiancc commited on
Commit
57d2d93
1 Parent(s): 6c1b85a

Removing max_size on queue and add concurrency limit to 2

Browse files

This implementation brings about the removal of the queue limiter and competition for up to two generations at the same time (I believe the machine can handle it - NOT SURE OF THAT)

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,5 +111,5 @@ with gr.Blocks() as demo:
111
  cache_examples=true_for_shared_ui
112
  )
113
 
114
- demo.queue(max_size=15)
115
  demo.launch(share=True)
 
111
  cache_examples=true_for_shared_ui
112
  )
113
 
114
+ demo.queue(max_size=None, concurrency_limit=2)
115
  demo.launch(share=True)