gaur3009 commited on
Commit
71ac328
·
verified ·
1 Parent(s): 30dec87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -135,19 +135,11 @@ def inference(image):
135
 
136
  return [im_rgba, pil_mask]
137
 
138
-
139
- title = "Highly Accurate Dichotomous Image Segmentation"
140
- description = "This is an unofficial demo for DIS, a model that can remove the background from a given image. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below.<br>GitHub: https://github.com/xuebinqin/DIS<br>Telegram bot: https://t.me/restoration_photo_bot<br>[![](https://img.shields.io/twitter/follow/DoEvent?label=@DoEvent&style=social)](https://twitter.com/DoEvent)"
141
- article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=max_skobeev_dis_cmp_public' alt='visitor badge'></center></div>"
142
-
143
  interface = gr.Interface(
144
  fn=inference,
145
  inputs=gr.Image(type='filepath'),
146
  outputs=[gr.Image(type='filepath', format="png"), gr.Image(type='filepath', format="png")],
147
  examples=[['robot.png'], ['ship.png']],
148
- title=title,
149
- description=description,
150
- article=article,
151
  flagging_mode="never",
152
  cache_mode="lazy",
153
  ).queue(api_open=True).launch(show_error=True, show_api=True)
 
135
 
136
  return [im_rgba, pil_mask]
137
 
 
 
 
 
 
138
  interface = gr.Interface(
139
  fn=inference,
140
  inputs=gr.Image(type='filepath'),
141
  outputs=[gr.Image(type='filepath', format="png"), gr.Image(type='filepath', format="png")],
142
  examples=[['robot.png'], ['ship.png']],
 
 
 
143
  flagging_mode="never",
144
  cache_mode="lazy",
145
  ).queue(api_open=True).launch(show_error=True, show_api=True)