hysts HF Staff commited on
Commit
670b750
·
1 Parent(s): 6edad90
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def remove_background(image: PIL.Image.Image) -> tuple[PIL.Image.Image, PIL.Imag
19
  return rembg.remove(image), image
20
 
21
 
22
- with gr.Blocks(css_paths="style.css") as demo:
23
  gr.Markdown(DESCRIPTION)
24
  with gr.Row():
25
  with gr.Column():
@@ -32,4 +32,4 @@ with gr.Blocks(css_paths="style.css") as demo:
32
  run_button.click(fn=remove_background, inputs=image, outputs=out)
33
 
34
  if __name__ == "__main__":
35
- demo.launch(mcp_server=True)
 
19
  return rembg.remove(image), image
20
 
21
 
22
+ with gr.Blocks() as demo:
23
  gr.Markdown(DESCRIPTION)
24
  with gr.Row():
25
  with gr.Column():
 
32
  run_button.click(fn=remove_background, inputs=image, outputs=out)
33
 
34
  if __name__ == "__main__":
35
+ demo.launch(mcp_server=True, css_paths="style.css")