Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from rembg import remove
|
3 |
from PIL import Image
|
|
|
4 |
|
5 |
def remove_background(input_image):
|
6 |
|
@@ -17,7 +18,7 @@ iface = gr.Interface(remove_background,
|
|
17 |
outputs=output_image,
|
18 |
title='Image Background Remover',
|
19 |
description='Upload an image and it will remove.',
|
20 |
-
|
21 |
|
22 |
# Launch the interface
|
23 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from rembg import remove
|
3 |
from PIL import Image
|
4 |
+
import os
|
5 |
|
6 |
def remove_background(input_image):
|
7 |
|
|
|
18 |
outputs=output_image,
|
19 |
title='Image Background Remover',
|
20 |
description='Upload an image and it will remove.',
|
21 |
+
os.path.join(os.path.dirname(__file__), "images/lion.jpg")
|
22 |
|
23 |
# Launch the interface
|
24 |
iface.launch()
|