hysts HF staff commited on
Commit
82447cb
1 Parent(s): 2e42952
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ with gr.Blocks(css='style.css') as demo:
25
  result = gr.Image(label='Result', type='numpy')
26
  with gr.Row():
27
  gr.Examples(examples=[[path.as_posix()] for path in paths],
28
- inputs=[image])
29
 
30
  run_button.click(fn=run_model,
31
  inputs=[
@@ -34,4 +34,4 @@ with gr.Blocks(css='style.css') as demo:
34
  ],
35
  outputs=result,
36
  api_name='run')
37
- demo.queue().launch()
 
25
  result = gr.Image(label='Result', type='numpy')
26
  with gr.Row():
27
  gr.Examples(examples=[[path.as_posix()] for path in paths],
28
+ inputs=image)
29
 
30
  run_button.click(fn=run_model,
31
  inputs=[
 
34
  ],
35
  outputs=result,
36
  api_name='run')
37
+ demo.queue(max_size=20).launch()