Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,8 @@ def remove_background(image):
|
|
27 |
# 界面设置
|
28 |
iface = gr.Interface(
|
29 |
fn=remove_background,
|
|
|
|
|
30 |
inputs=gr.Image(label="Upload Image"),
|
31 |
outputs=gr.Image(label="Output Image", type="filepath"),
|
32 |
title="AI Background Remover - Automatically Remove Image Backgrounds",
|
@@ -47,4 +49,4 @@ iface = gr.Interface(
|
|
47 |
)
|
48 |
|
49 |
if __name__ == "__main__":
|
50 |
-
iface.launch()
|
|
|
27 |
# 界面设置
|
28 |
iface = gr.Interface(
|
29 |
fn=remove_background,
|
30 |
+
api_name=False,
|
31 |
+
analytics_enabled=False,
|
32 |
inputs=gr.Image(label="Upload Image"),
|
33 |
outputs=gr.Image(label="Output Image", type="filepath"),
|
34 |
title="AI Background Remover - Automatically Remove Image Backgrounds",
|
|
|
49 |
)
|
50 |
|
51 |
if __name__ == "__main__":
|
52 |
+
iface.launch(show_error=True, show_api=False)
|