Spaces:
Runtime error
Runtime error
Update to use gradio 3.25.0 (#47)
Browse files- Update to gradio==3.25.0 (ace7b70d715118fae2a80c98a8b3be1c23693524)
Co-authored-by: hysts <[email protected]>
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 😁
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.25.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -131,14 +131,14 @@ If you have any question, please email 📧 `[email protected]` or `xintao
|
|
131 |
"""
|
132 |
demo = gr.Interface(
|
133 |
inference, [
|
134 |
-
gr.
|
135 |
-
# gr.
|
136 |
-
gr.
|
137 |
-
gr.
|
138 |
-
# gr.Slider(0, 100, label='Weight, only for CodeFormer. 0 for better quality, 100 for better identity',
|
139 |
], [
|
140 |
-
gr.
|
141 |
-
gr.
|
142 |
],
|
143 |
title=title,
|
144 |
description=description,
|
@@ -147,4 +147,4 @@ demo = gr.Interface(
|
|
147 |
# ['10045.png', 'v1.4', 2, 50]]).launch()
|
148 |
examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
|
149 |
['10045.png', 'v1.4', 2]])
|
150 |
-
demo.launch()
|
|
|
131 |
"""
|
132 |
demo = gr.Interface(
|
133 |
inference, [
|
134 |
+
gr.Image(type="filepath", label="Input"),
|
135 |
+
# gr.Radio(['v1.2', 'v1.3', 'v1.4', 'RestoreFormer', 'CodeFormer'], type="value", value='v1.4', label='version'),
|
136 |
+
gr.Radio(['v1.2', 'v1.3', 'v1.4', 'RestoreFormer'], type="value", value='v1.4', label='version'),
|
137 |
+
gr.Number(label="Rescaling factor", value=2),
|
138 |
+
# gr.Slider(0, 100, label='Weight, only for CodeFormer. 0 for better quality, 100 for better identity', value=50)
|
139 |
], [
|
140 |
+
gr.Image(type="numpy", label="Output (The whole image)"),
|
141 |
+
gr.File(label="Download the output image")
|
142 |
],
|
143 |
title=title,
|
144 |
description=description,
|
|
|
147 |
# ['10045.png', 'v1.4', 2, 50]]).launch()
|
148 |
examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
|
149 |
['10045.png', 'v1.4', 2]])
|
150 |
+
demo.queue().launch()
|