Spaces:
Running
Running
Hu
commited on
Commit
·
0723193
1
Parent(s):
a58728b
reformatting
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ model.eval()
|
|
55 |
# return grid
|
56 |
|
57 |
|
58 |
-
def
|
59 |
# gradio open image as np array
|
60 |
image = Image.fromarray(image, mode="RGB")
|
61 |
|
@@ -68,8 +68,8 @@ def sepia(image):
|
|
68 |
return out_final, image_bicubic
|
69 |
|
70 |
|
71 |
-
|
72 |
-
fn=
|
73 |
inputs=gr.inputs.Image(label="Upload image"),
|
74 |
outputs=[
|
75 |
gr.outputs.Image(label="Convolutional neural network"),
|
@@ -79,6 +79,4 @@ demo = gr.Interface(
|
|
79 |
description=description,
|
80 |
article=article,
|
81 |
examples=examples,
|
82 |
-
)
|
83 |
-
|
84 |
-
demo.launch()
|
|
|
55 |
# return grid
|
56 |
|
57 |
|
58 |
+
def super_reso(image):
|
59 |
# gradio open image as np array
|
60 |
image = Image.fromarray(image, mode="RGB")
|
61 |
|
|
|
68 |
return out_final, image_bicubic
|
69 |
|
70 |
|
71 |
+
gr.Interface(
|
72 |
+
fn=super_reso,
|
73 |
inputs=gr.inputs.Image(label="Upload image"),
|
74 |
outputs=[
|
75 |
gr.outputs.Image(label="Convolutional neural network"),
|
|
|
79 |
description=description,
|
80 |
article=article,
|
81 |
examples=examples,
|
82 |
+
).launch()
|
|
|
|