Spaces:
Runtime error
Runtime error
upgrading to the latest gradio sdk
#1
by
ysharma
HF staff
- opened
- README.md +1 -1
- app.py +4 -1
- requirements.txt +1 -2
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 💻
|
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.31.5
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
app.py
CHANGED
@@ -150,7 +150,10 @@ css = """
|
|
150 |
demo = gr.Interface(
|
151 |
fn=process_img,
|
152 |
inputs=[gr.Image(type="pil", label="Input", value="images/img002x4.png"),],
|
153 |
-
outputs=ImageSlider(label="Super-Resolved Image",
|
|
|
|
|
|
|
154 |
title=title,
|
155 |
description=description,
|
156 |
article=article,
|
|
|
150 |
demo = gr.Interface(
|
151 |
fn=process_img,
|
152 |
inputs=[gr.Image(type="pil", label="Input", value="images/img002x4.png"),],
|
153 |
+
outputs=ImageSlider(label="Super-Resolved Image",
|
154 |
+
type="pil",
|
155 |
+
show_download_button=True,
|
156 |
+
), #[gr.Image(type="pil", label="Ouput", min_width=500)],
|
157 |
title=title,
|
158 |
description=description,
|
159 |
article=article,
|
requirements.txt
CHANGED
@@ -3,5 +3,4 @@ numpy
|
|
3 |
einops
|
4 |
PyYAML
|
5 |
Pillow>=6.2.2
|
6 |
-
|
7 |
-
gradio_imageslider==0.0.18
|
|
|
3 |
einops
|
4 |
PyYAML
|
5 |
Pillow>=6.2.2
|
6 |
+
gradio_imageslider==0.0.20
|
|