mirror of
https://huggingface.co/spaces/ECCV2022/dis-background-removal
synced 2024-11-26 09:53:17 +01:00
Update app.py
This commit is contained in:
parent
0c332e27d8
commit
d5227b4fb5
3
app.py
3
app.py
@ -143,12 +143,11 @@ article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=
|
|||||||
interface = gr.Interface(
|
interface = gr.Interface(
|
||||||
fn=inference,
|
fn=inference,
|
||||||
inputs=gr.Image(type='filepath'),
|
inputs=gr.Image(type='filepath'),
|
||||||
outputs=["image", "image"],
|
outputs=[gr.Image(type='filepath', format="png"), gr.Image(type='filepath', format="png")],
|
||||||
examples=[['robot.png'], ['ship.png']],
|
examples=[['robot.png'], ['ship.png']],
|
||||||
title=title,
|
title=title,
|
||||||
description=description,
|
description=description,
|
||||||
article=article,
|
article=article,
|
||||||
flagging_mode="never",
|
flagging_mode="never",
|
||||||
cache_mode="lazy",
|
cache_mode="lazy",
|
||||||
delete_cache=(4000, 4000),
|
|
||||||
).queue().launch(show_error=True)
|
).queue().launch(show_error=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user