MINAMONI commited on
Commit
6a63814
·
1 Parent(s): 8bfcaff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ if __name__ == "__main__":
34
  providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
35
  model_path = huggingface_hub.hf_hub_download("skytnt/anime-seg", "isnetis.onnx")
36
  rmbg_model = rt.InferenceSession(model_path, providers=providers)
37
- app = gr.Blocks)
38
  with app:
39
  gr.Markdown("# Anime Remove Background\n\n"
40
  "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=skytnt.animeseg)\n\n"
@@ -49,4 +49,4 @@ if __name__ == "__main__":
49
  output_img = gr.Image(label="result", image_mode="RGBA")
50
  examples.click(lambda x: x[0], [examples], [input_img])
51
  run_btn.click(rmbg_fn, [input_img], [output_mask, output_img])
52
- app.launch((share=True)
 
34
  providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
35
  model_path = huggingface_hub.hf_hub_download("skytnt/anime-seg", "isnetis.onnx")
36
  rmbg_model = rt.InferenceSession(model_path, providers=providers)
37
+ app = gr.Blocks()
38
  with app:
39
  gr.Markdown("# Anime Remove Background\n\n"
40
  "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=skytnt.animeseg)\n\n"
 
49
  output_img = gr.Image(label="result", image_mode="RGBA")
50
  examples.click(lambda x: x[0], [examples], [input_img])
51
  run_btn.click(rmbg_fn, [input_img], [output_mask, output_img])
52
+ app.launch(share=True)