radames commited on
Commit
a2e978b
1 Parent(s): a8a414c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,6 +3,8 @@ import gradio as gr
3
  from PIL import Image
4
  import qrcode
5
  from pathlib import Path
 
 
6
 
7
  from diffusers import (
8
  StableDiffusionPipeline,
@@ -276,5 +278,5 @@ model: https://huggingface.co/DionTimmer/controlnet_qrcode-control_v1p_sd15
276
  cache_examples=True,
277
  )
278
 
279
- blocks.queue()
280
  blocks.launch()
 
3
  from PIL import Image
4
  import qrcode
5
  from pathlib import Path
6
+ from multiprocessing import cpu_count
7
+
8
 
9
  from diffusers import (
10
  StableDiffusionPipeline,
 
278
  cache_examples=True,
279
  )
280
 
281
+ blocks.queue(concurrency_count=2)
282
  blocks.launch()