ljsabc commited on
Commit
ce90b79
1 Parent(s): 8e69757

minimal workable demo for prediction

Browse files
Files changed (2) hide show
  1. 1562990.jpg +0 -0
  2. app.py +6 -2
1562990.jpg ADDED
app.py CHANGED
@@ -65,9 +65,13 @@ def fn(image):
65
  return Image.fromarray(drawed[..., ::-1])
66
 
67
  iface = gr.Interface(
68
- fn=fn
 
 
 
69
  inputs=gr.Image(type="numpy"),
70
- outputs=gr.Image(type="pil")
 
71
  )
72
 
73
  iface.launch()
 
65
  return Image.fromarray(drawed[..., ::-1])
66
 
67
  iface = gr.Interface(
68
+ # design titles and text descriptions
69
+ title="Anime Subject Instance Segmentation",
70
+ description="This is a demo of Anime Instance Segmentation with our proposed model in [AnimeInstanceSegmentation](https://cartoonsegmentation.github.io/)",
71
+ fn=fn,
72
  inputs=gr.Image(type="numpy"),
73
+ outputs=gr.Image(type="pil"),
74
+ examples=["1562990.jpg"]
75
  )
76
 
77
  iface.launch()