NewbloomAI commited on
Commit
8d130d7
·
verified ·
1 Parent(s): 736404c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -148,7 +148,7 @@ tab_image = gr.Interface(
148
  gr.Image(label='Upload an image'),
149
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
150
  ],
151
- outputs=gr.ImageSlider(label="BiRefNet's prediction", type="pil", format='png'),
152
  api_name="image",
153
  description=descriptions,
154
  )
@@ -159,7 +159,7 @@ tab_text = gr.Interface(
159
  gr.Textbox(label="Paste an image URL"),
160
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
161
  ],
162
- outputs=gr.ImageSlider(label="BiRefNet's prediction", type="pil", format='png'),
163
  api_name="URL",
164
  description=descriptions + '\nTab-URL is partially modified from https://huggingface.co/spaces/not-lain/background-removal, thanks to this great work!',
165
  )
@@ -170,10 +170,9 @@ tab_batch = gr.Interface(
170
  gr.File(label="Upload multiple images", type="filepath", file_count="multiple"),
171
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
172
  ],
173
- outputs=[gr.Gallery(label="BiRefNet's predictions"), gr.File(label="Download masked images.")],
174
  api_name="batch",
175
- description=descriptions + '\nTab-batch is partially modified from https://huggingface.co/spaces/NegiTurkey/Multi_Birefnetfor_Background_Removal, thanks to this great work!',
176
- )
177
 
178
  demo = gr.TabbedInterface(
179
  [tab_image, tab_text, tab_batch],
 
148
  gr.Image(label='Upload an image'),
149
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
150
  ],
151
+ outputs=gr.ImageSlider(label="Lot Lingo's prediction", type="pil", format='png'),
152
  api_name="image",
153
  description=descriptions,
154
  )
 
159
  gr.Textbox(label="Paste an image URL"),
160
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
161
  ],
162
+ outputs=gr.ImageSlider(label="Lot Lingo's prediction", type="pil", format='png'),
163
  api_name="URL",
164
  description=descriptions + '\nTab-URL is partially modified from https://huggingface.co/spaces/not-lain/background-removal, thanks to this great work!',
165
  )
 
170
  gr.File(label="Upload multiple images", type="filepath", file_count="multiple"),
171
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`.", label="Resolution"),
172
  ],
173
+ outputs=[gr.Gallery(label="Lot Lingo's predictions"), gr.File(label="Download masked images.")],
174
  api_name="batch",
175
+ )
 
176
 
177
  demo = gr.TabbedInterface(
178
  [tab_image, tab_text, tab_batch],