Spaces:
Runtime error
Runtime error
Hu
commited on
Commit
•
d5c8480
1
Parent(s):
e831a7b
update input image
Browse files- app.py +3 -3
- peperoni.png +0 -0
app.py
CHANGED
@@ -25,7 +25,7 @@ article = """
|
|
25 |
</div>
|
26 |
"""
|
27 |
examples = [
|
28 |
-
["
|
29 |
["barbara.png"],
|
30 |
]
|
31 |
|
@@ -141,7 +141,7 @@ def super_reso(image):
|
|
141 |
|
142 |
gr.Interface(
|
143 |
fn=super_reso,
|
144 |
-
inputs=gr.inputs.Image(label="Upload image"),
|
145 |
outputs=[
|
146 |
gr.outputs.Image(label="Convolutional neural network"),
|
147 |
gr.outputs.Image(label="Bicubic interpoloation"),
|
@@ -150,4 +150,4 @@ gr.Interface(
|
|
150 |
description=description,
|
151 |
article=article,
|
152 |
examples=examples,
|
153 |
-
).launch()
|
|
|
25 |
</div>
|
26 |
"""
|
27 |
examples = [
|
28 |
+
["peperoni.png"],
|
29 |
["barbara.png"],
|
30 |
]
|
31 |
|
|
|
141 |
|
142 |
gr.Interface(
|
143 |
fn=super_reso,
|
144 |
+
inputs=gr.inputs.Image(type='pil',label="Upload image"),
|
145 |
outputs=[
|
146 |
gr.outputs.Image(label="Convolutional neural network"),
|
147 |
gr.outputs.Image(label="Bicubic interpoloation"),
|
|
|
150 |
description=description,
|
151 |
article=article,
|
152 |
examples=examples,
|
153 |
+
).launch()
|
peperoni.png
ADDED