Update app.py

This commit is contained in:
Max Skobeev 2024-10-20 02:57:39 +00:00 committed by system
parent 0c332e27d8
commit d5227b4fb5
No known key found for this signature in database
GPG Key ID: 6A528E38E0733467

3
app.py
View File

@ -143,12 +143,11 @@ article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=
interface = gr.Interface(
fn=inference,
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']],
title=title,
description=description,
article=article,
flagging_mode="never",
cache_mode="lazy",
delete_cache=(4000, 4000),
).queue().launch(show_error=True)