ZhengPeng7 commited on
Commit
65cb7d4
1 Parent(s): 9439305

Set all outputs in png format in `app_local.py`.

Browse files
Files changed (1) hide show
  1. app_local.py +2 -2
app_local.py CHANGED
@@ -185,7 +185,7 @@ tab_image = gr.Interface(
185
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
186
  gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
187
  ],
188
- outputs=gr.Image(label="BiRefNet's prediction", type="pil"),
189
  examples=examples,
190
  api_name="image",
191
  description=descriptions,
@@ -198,7 +198,7 @@ tab_text = gr.Interface(
198
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
199
  gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
200
  ],
201
- outputs=gr.Image(label="BiRefNet's prediction", type="pil"),
202
  examples=examples_url,
203
  api_name="text",
204
  description=descriptions+'\nTab-URL is partially modified from https://huggingface.co/spaces/not-lain/background-removal, thanks to this great work!',
 
185
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
186
  gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
187
  ],
188
+ outputs=gr.Image(label="BiRefNet's prediction", type="pil", format='png'),
189
  examples=examples,
190
  api_name="image",
191
  description=descriptions,
 
198
  gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
199
  gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
200
  ],
201
+ outputs=gr.Image(label="BiRefNet's prediction", type="pil", format='png'),
202
  examples=examples_url,
203
  api_name="text",
204
  description=descriptions+'\nTab-URL is partially modified from https://huggingface.co/spaces/not-lain/background-removal, thanks to this great work!',