Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -70,74 +70,54 @@ examples = [
|
|
70 |
box_blur_demo = gr.Interface(
|
71 |
box_blur_fn,
|
72 |
[
|
73 |
-
gr.
|
74 |
-
gr.
|
75 |
],
|
76 |
"image",
|
77 |
examples=examples,
|
78 |
-
# title=title,
|
79 |
-
# description=description,
|
80 |
-
# article=article,
|
81 |
-
# live=True # --> 2022.09.08: Bug with click and dragging button. See: https://huggingface.co/spaces/kornia/kornia-image-filtering/discussions/2#63206d3b54a96c8e65c1fed2
|
82 |
)
|
83 |
|
84 |
|
85 |
blur_pool2d_demo = gr.Interface(
|
86 |
blur_pool2d_fn,
|
87 |
[
|
88 |
-
gr.
|
89 |
-
gr.
|
90 |
],
|
91 |
"image",
|
92 |
examples=examples,
|
93 |
-
# title=title,
|
94 |
-
# description=description,
|
95 |
-
# article=article,
|
96 |
-
# live=True # --> 2022.09.08: Bug with click and dragging button. See: https://huggingface.co/spaces/kornia/kornia-image-filtering/discussions/2#63206d3b54a96c8e65c1fed2
|
97 |
)
|
98 |
|
99 |
|
100 |
gaussian_blur_demo = gr.Interface(
|
101 |
gaussian_blur_fn,
|
102 |
[
|
103 |
-
gr.
|
104 |
-
gr.
|
105 |
],
|
106 |
"image",
|
107 |
examples=examples,
|
108 |
-
# title=title,
|
109 |
-
# description=description,
|
110 |
-
# article=article,
|
111 |
-
# live=True # --> 2022.09.08: Bug with click and dragging button. See: https://huggingface.co/spaces/kornia/kornia-image-filtering/discussions/2#63206d3b54a96c8e65c1fed2
|
112 |
)
|
113 |
|
114 |
|
115 |
max_blur_pool2d_demo = gr.Interface(
|
116 |
max_blur_pool2d_fn,
|
117 |
[
|
118 |
-
gr.
|
119 |
-
gr.
|
120 |
],
|
121 |
"image",
|
122 |
examples=examples,
|
123 |
-
# title=title,
|
124 |
-
# description=description,
|
125 |
-
# article=article,
|
126 |
-
# live=True # --> 2022.09.08: Bug with click and dragging button. See: https://huggingface.co/spaces/kornia/kornia-image-filtering/discussions/2#63206d3b54a96c8e65c1fed2
|
127 |
)
|
128 |
|
129 |
median_blur_demo = gr.Interface(
|
130 |
median_blur_fn,
|
131 |
[
|
132 |
-
gr.
|
133 |
-
gr.
|
134 |
],
|
135 |
"image",
|
136 |
examples=examples,
|
137 |
-
# title=title,
|
138 |
-
# description=description,
|
139 |
-
# article=article,
|
140 |
-
# live=True # --> 2022.09.08: Bug with click and dragging button. See: https://huggingface.co/spaces/kornia/kornia-image-filtering/discussions/2#63206d3b54a96c8e65c1fed2
|
141 |
)
|
142 |
|
143 |
|
|
|
70 |
box_blur_demo = gr.Interface(
|
71 |
box_blur_fn,
|
72 |
[
|
73 |
+
gr.Image(type="filepath"),
|
74 |
+
gr.Slider(minimum=1, maximum=20, step=1, value=10, label="Box Blur")
|
75 |
],
|
76 |
"image",
|
77 |
examples=examples,
|
|
|
|
|
|
|
|
|
78 |
)
|
79 |
|
80 |
|
81 |
blur_pool2d_demo = gr.Interface(
|
82 |
blur_pool2d_fn,
|
83 |
[
|
84 |
+
gr.Image(type="file"),
|
85 |
+
gr.Slider(minimum=1, maximum=40, step=1, value=20, label="Blur Pool")
|
86 |
],
|
87 |
"image",
|
88 |
examples=examples,
|
|
|
|
|
|
|
|
|
89 |
)
|
90 |
|
91 |
|
92 |
gaussian_blur_demo = gr.Interface(
|
93 |
gaussian_blur_fn,
|
94 |
[
|
95 |
+
gr.Image(type="file"),
|
96 |
+
gr.Slider(minimum=1, maximum=30, step=2, value=15, label="Gaussian Blur")
|
97 |
],
|
98 |
"image",
|
99 |
examples=examples,
|
|
|
|
|
|
|
|
|
100 |
)
|
101 |
|
102 |
|
103 |
max_blur_pool2d_demo = gr.Interface(
|
104 |
max_blur_pool2d_fn,
|
105 |
[
|
106 |
+
gr.Image(type="file"),
|
107 |
+
gr.Slider(minimum=1, maximum=40, step=1, value=20, label="Max Pool")
|
108 |
],
|
109 |
"image",
|
110 |
examples=examples,
|
|
|
|
|
|
|
|
|
111 |
)
|
112 |
|
113 |
median_blur_demo = gr.Interface(
|
114 |
median_blur_fn,
|
115 |
[
|
116 |
+
gr.Image(type="file"),
|
117 |
+
gr.Slider(minimum=1, maximum=30, step=2, value=15, label="Median Blur")
|
118 |
],
|
119 |
"image",
|
120 |
examples=examples,
|
|
|
|
|
|
|
|
|
121 |
)
|
122 |
|
123 |
|