to gradio 4.42
Browse files
app.py
CHANGED
@@ -66,12 +66,13 @@ gr.Interface(inference,
|
|
66 |
type="value",
|
67 |
value='2x',
|
68 |
label='Resolution model')],
|
69 |
-
gr.Image(type="pil", label="Output"),
|
70 |
title=title,
|
71 |
description=description,
|
72 |
article=article,
|
73 |
examples=[['groot.jpeg', "2x"]],
|
74 |
allow_flagging='never',
|
75 |
cache_examples=False,
|
|
|
76 |
).queue(api_open=True).launch(show_error=True, show_api=True)
|
77 |
|
|
|
66 |
type="value",
|
67 |
value='2x',
|
68 |
label='Resolution model')],
|
69 |
+
gr.Image(type="pil", label="Output", format="png"),
|
70 |
title=title,
|
71 |
description=description,
|
72 |
article=article,
|
73 |
examples=[['groot.jpeg', "2x"]],
|
74 |
allow_flagging='never',
|
75 |
cache_examples=False,
|
76 |
+
delete_cache=(4000, 4000),
|
77 |
).queue(api_open=True).launch(show_error=True, show_api=True)
|
78 |
|