Thiago Hersan commited on
Commit
138e452
1 Parent(s): 7bb7f6b

limit queue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -73,7 +73,7 @@ def query_image(image_path):
73
 
74
 
75
  demo = gr.Interface(
76
- query_image,
77
  inputs=[gr.Image(type="filepath", label="Input Image")],
78
  outputs=[
79
  gr.Image(label="Vegetation"),
@@ -86,4 +86,5 @@ demo = gr.Interface(
86
  cache_examples=True
87
  )
88
 
 
89
  demo.launch(show_api=False)
 
73
 
74
 
75
  demo = gr.Interface(
76
+ fn=query_image,
77
  inputs=[gr.Image(type="filepath", label="Input Image")],
78
  outputs=[
79
  gr.Image(label="Vegetation"),
 
86
  cache_examples=True
87
  )
88
 
89
+ demo.queue(concurrency_count=4, max_size=1)
90
  demo.launch(show_api=False)