dhanushreddy29
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -10,6 +10,7 @@ def remove_background(input_image):
|
|
10 |
output_image = remove(input_image)
|
11 |
return output_image
|
12 |
|
|
|
13 |
interface = gr.Interface(
|
14 |
fn=remove_background,
|
15 |
inputs=gr.Image(type="pil"),
|
@@ -25,4 +26,4 @@ interface = gr.Interface(
|
|
25 |
)
|
26 |
|
27 |
if __name__ == "__main__":
|
28 |
-
interface.launch(
|
|
|
10 |
output_image = remove(input_image)
|
11 |
return output_image
|
12 |
|
13 |
+
# Create the Gradio interface using the new syntax
|
14 |
interface = gr.Interface(
|
15 |
fn=remove_background,
|
16 |
inputs=gr.Image(type="pil"),
|
|
|
26 |
)
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
+
interface.launch()
|