Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
"\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(
|
|
|
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 |
"\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)
|