T.Masuda commited on
Commit
e099429
·
1 Parent(s): f39110f

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def process_image(foreImg, flip, backImg, left, top, width, height, isLoc):
30
  backImg.paste(image, (left, top), image)
31
  return backImg
32
 
33
- gr.Interface(
34
  fn=process_image,
35
  inputs=[
36
  gr.Image(label='foreground', type='pil'),
@@ -48,4 +48,6 @@ gr.Interface(
48
  allow_flagging='never',
49
  examples=[['examples/foreground.jpg', False, 'examples/background.jpg', 720, 540, 256, 256, False]],
50
  #cache_examples=False
51
- ).launch()
 
 
 
30
  backImg.paste(image, (left, top), image)
31
  return backImg
32
 
33
+ app = gr.Interface(
34
  fn=process_image,
35
  inputs=[
36
  gr.Image(label='foreground', type='pil'),
 
48
  allow_flagging='never',
49
  examples=[['examples/foreground.jpg', False, 'examples/background.jpg', 720, 540, 256, 256, False]],
50
  #cache_examples=False
51
+ )
52
+ app.queue(concurrency_count=20)
53
+ app.launch()