Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update
Browse files
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=
|
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()
|