lucky0146 commited on
Commit
03fd7d3
·
verified ·
1 Parent(s): 3816a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def remove_background(image):
27
  # 界面设置
28
  iface = gr.Interface(
29
  fn=remove_background,
30
- api_name="remove_background", # Changed from False to "remove_background"
31
  analytics_enabled=False,
32
  inputs=gr.Image(label="Upload Image"),
33
  outputs=gr.Image(label="Output Image", type="filepath"),
@@ -49,4 +49,4 @@ iface = gr.Interface(
49
  )
50
 
51
  if __name__ == "__main__":
52
- iface.launch(show_error=True, show_api=True)
 
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"),
 
49
  )
50
 
51
  if __name__ == "__main__":
52
+ iface.launch(show_error=True, show_api=False)