Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,9 @@ def fn(image):
|
|
76 |
|
77 |
return Image.fromarray(drawed[..., ::-1])
|
78 |
|
|
|
|
|
|
|
79 |
iface = gr.Interface(
|
80 |
# design titles and text descriptions
|
81 |
title="Anime Subject Instance Segmentation",
|
@@ -83,7 +86,8 @@ iface = gr.Interface(
|
|
83 |
fn=fn,
|
84 |
inputs=gr.Image(type="numpy"),
|
85 |
outputs=gr.Image(type="pil"),
|
86 |
-
examples=
|
|
|
87 |
)
|
88 |
|
89 |
iface.launch(share = True)
|
|
|
76 |
|
77 |
return Image.fromarray(drawed[..., ::-1])
|
78 |
|
79 |
+
import pathlib
|
80 |
+
genshin_impact_exps = list(map(str ,pathlib.Path("Genshin_Impact_Images").rglob("*.png")))
|
81 |
+
|
82 |
iface = gr.Interface(
|
83 |
# design titles and text descriptions
|
84 |
title="Anime Subject Instance Segmentation",
|
|
|
86 |
fn=fn,
|
87 |
inputs=gr.Image(type="numpy"),
|
88 |
outputs=gr.Image(type="pil"),
|
89 |
+
examples = genshin_impact_exps
|
90 |
+
#examples=["1562990.jpg", "612989.jpg", "sample_3.jpg"]
|
91 |
)
|
92 |
|
93 |
iface.launch(share = True)
|