Spaces:
Sleeping
Sleeping
jioji0
commited on
Commit
•
23aae4b
1
Parent(s):
0043cab
img size
Browse files
app.py
CHANGED
@@ -98,7 +98,8 @@ def sepia(input_img):
|
|
98 |
return fig
|
99 |
|
100 |
demo = gr.Interface(fn=sepia,
|
101 |
-
inputs=gr.Image(shape=(1024, 1024)),
|
|
|
102 |
outputs=['plot'],
|
103 |
examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
|
104 |
allow_flagging='never')
|
|
|
98 |
return fig
|
99 |
|
100 |
demo = gr.Interface(fn=sepia,
|
101 |
+
#inputs=gr.Image(shape=(1024, 1024)),
|
102 |
+
inputs=gr.Image(type='pil', preprocess=lambda x: x.resize((1024, 1024))),
|
103 |
outputs=['plot'],
|
104 |
examples=["city-1.jpg", "city-2.jpg", "city-3.jpg"],
|
105 |
allow_flagging='never')
|