Spaces:
Runtime error
Runtime error
Maintained All Core Functionality
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import gradio as gr
|
|
| 3 |
from rembg import remove
|
| 4 |
from PIL import Image
|
| 5 |
import io
|
| 6 |
-
import numpy as np
|
| 7 |
|
| 8 |
# Background remover function with error handling
|
| 9 |
def remove_background(image: Image.Image) -> Image.Image:
|
|
@@ -156,12 +155,5 @@ with gr.Blocks(title="AI ClearCut - Professional Background Remover", css=custom
|
|
| 156 |
outputs=[input_image, output_image]
|
| 157 |
)
|
| 158 |
|
| 159 |
-
#
|
| 160 |
-
interface.launch(
|
| 161 |
-
server_name="0.0.0.0",
|
| 162 |
-
server_port=7860,
|
| 163 |
-
share=False,
|
| 164 |
-
favicon_path=None,
|
| 165 |
-
enable_queue=True,
|
| 166 |
-
show_error=True
|
| 167 |
-
)
|
|
|
|
| 3 |
from rembg import remove
|
| 4 |
from PIL import Image
|
| 5 |
import io
|
|
|
|
| 6 |
|
| 7 |
# Background remover function with error handling
|
| 8 |
def remove_background(image: Image.Image) -> Image.Image:
|
|
|
|
| 155 |
outputs=[input_image, output_image]
|
| 156 |
)
|
| 157 |
|
| 158 |
+
# Simplified launch for Hugging Face Spaces
|
| 159 |
+
interface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|