Spaces:
Sleeping
Sleeping
sunnychenxiwang
commited on
Commit
•
8dc4699
1
Parent(s):
e1bbae5
my app
Browse files
app.py
CHANGED
@@ -49,7 +49,12 @@ def sepia(input_img):
|
|
49 |
sepia_img = input_img.dot(sepia_filter.T)
|
50 |
sepia_img /= sepia_img.max()
|
51 |
return sepia_img
|
52 |
-
#shape设置输入图像大小
|
53 |
-
demo = gr.Interface(sepia, gr.Image(), "image")
|
54 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
55 |
|
|
|
49 |
sepia_img = input_img.dot(sepia_filter.T)
|
50 |
sepia_img /= sepia_img.max()
|
51 |
return sepia_img
|
52 |
+
# #shape设置输入图像大小
|
53 |
+
# demo = gr.Interface(sepia, gr.Image(), "image")
|
54 |
+
# demo.launch()
|
55 |
+
|
56 |
+
# Download human-readable labels for ImageNet.
|
57 |
+
|
58 |
+
gr.Interface(fn=sepia,
|
59 |
+
inputs=gr.Image(type="pil")).launch()
|
60 |
|