Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -62,17 +62,17 @@ article = "<div style='text-align: center;'>Twitter <a href='https://twitter.com
|
|
62 |
|
63 |
gr.Interface(inference,
|
64 |
[gr.Image(type="pil"),
|
65 |
-
gr.Radio([
|
66 |
type="value",
|
67 |
-
value=
|
68 |
-
label=
|
69 |
gr.Image(type="pil", label="Output", format="png"),
|
70 |
title=title,
|
71 |
description=description,
|
72 |
article=article,
|
73 |
-
examples=[[
|
74 |
-
allow_flagging=
|
75 |
-
cache_examples=
|
76 |
delete_cache=(4000, 4000),
|
77 |
).queue(api_open=True).launch(show_error=True, show_api=True)
|
78 |
|
|
|
62 |
|
63 |
gr.Interface(inference,
|
64 |
[gr.Image(type="pil"),
|
65 |
+
gr.Radio(["2x", "4x", "8x"],
|
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="lazy",
|
76 |
delete_cache=(4000, 4000),
|
77 |
).queue(api_open=True).launch(show_error=True, show_api=True)
|
78 |
|