Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,13 @@ def remove_bg(image):
|
|
| 6 |
output_image = remove(image)
|
| 7 |
return output_image
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
|
|
|
| 11 |
if __name__ == "__main__":
|
| 12 |
-
demo.launch(
|
|
|
|
| 6 |
output_image = remove(image)
|
| 7 |
return output_image
|
| 8 |
|
| 9 |
+
# Create Gradio interface
|
| 10 |
+
demo = gr.Interface(
|
| 11 |
+
fn=remove_bg,
|
| 12 |
+
inputs=gr.Image(type="pil"), # Accept PIL images
|
| 13 |
+
outputs="image", # Output as an image
|
| 14 |
+
)
|
| 15 |
|
| 16 |
+
# Launch the app
|
| 17 |
if __name__ == "__main__":
|
| 18 |
+
demo.launch(share=True)
|