Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,12 @@ with gr.Blocks(css=css) as demo:
|
|
65 |
with gr.Row():
|
66 |
submit_button = gr.Button("Удалить фон")
|
67 |
|
68 |
-
submit_button.click(
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
if __name__ == "__main__":
|
71 |
demo.launch(share=False)
|
|
|
65 |
with gr.Row():
|
66 |
submit_button = gr.Button("Удалить фон")
|
67 |
|
68 |
+
submit_button.click(
|
69 |
+
fn=inference,
|
70 |
+
inputs=input_image,
|
71 |
+
outputs=output_image,
|
72 |
+
concurrency_limit=10
|
73 |
+
)
|
74 |
|
75 |
if __name__ == "__main__":
|
76 |
demo.launch(share=False)
|