Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,16 +20,16 @@ def remove_background(image):
|
|
| 20 |
|
| 21 |
# Example images (replace with your actual image paths in the 'examples' folder)
|
| 22 |
example_images = [
|
| 23 |
-
"examples/
|
| 24 |
-
"examples/
|
| 25 |
-
"examples/
|
| 26 |
-
"examples/
|
| 27 |
-
"examples/
|
| 28 |
-
"examples/
|
| 29 |
]
|
| 30 |
|
| 31 |
with gr.Blocks(title="Background Remover") as demo:
|
| 32 |
-
gr.Markdown("#
|
| 33 |
gr.Markdown("Upload an image or use an example to remove its background.")
|
| 34 |
|
| 35 |
with gr.Row():
|
|
@@ -43,7 +43,7 @@ with gr.Blocks(title="Background Remover") as demo:
|
|
| 43 |
download_output = gr.File(label="Download Output")
|
| 44 |
|
| 45 |
with gr.Row():
|
| 46 |
-
gr.Markdown("###
|
| 47 |
with gr.Row():
|
| 48 |
gr.Examples(
|
| 49 |
examples=example_images,
|
|
|
|
| 20 |
|
| 21 |
# Example images (replace with your actual image paths in the 'examples' folder)
|
| 22 |
example_images = [
|
| 23 |
+
"examples/1.jpg",
|
| 24 |
+
"examples/2.jpg",
|
| 25 |
+
"examples/3.jpg",
|
| 26 |
+
"examples/4.jpg",
|
| 27 |
+
"examples/5.jpg",
|
| 28 |
+
"examples/6.png"
|
| 29 |
]
|
| 30 |
|
| 31 |
with gr.Blocks(title="Background Remover") as demo:
|
| 32 |
+
gr.Markdown("# Background Remover")
|
| 33 |
gr.Markdown("Upload an image or use an example to remove its background.")
|
| 34 |
|
| 35 |
with gr.Row():
|
|
|
|
| 43 |
download_output = gr.File(label="Download Output")
|
| 44 |
|
| 45 |
with gr.Row():
|
| 46 |
+
gr.Markdown("### Example Images")
|
| 47 |
with gr.Row():
|
| 48 |
gr.Examples(
|
| 49 |
examples=example_images,
|