lappemic commited on
Commit
260f4a1
1 Parent(s): 346da5d

adjust max slider values

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -71,7 +71,7 @@ box_blur_demo = gr.Interface(
71
  box_blur_fn,
72
  [
73
  gr.inputs.Image(type="file"),
74
- gr.inputs.Slider(minimum=1, maximum=10, step=1, default=1, label="Box Blur")
75
  ],
76
  "image",
77
  examples=examples,
@@ -86,7 +86,7 @@ blur_pool2d_demo = gr.Interface(
86
  blur_pool2d_fn,
87
  [
88
  gr.inputs.Image(type="file"),
89
- gr.inputs.Slider(minimum=1, maximum=20, step=1, default=1, label="Blur Pool")
90
  ],
91
  "image",
92
  examples=examples,
@@ -101,7 +101,7 @@ gaussian_blur_demo = gr.Interface(
101
  gaussian_blur_fn,
102
  [
103
  gr.inputs.Image(type="file"),
104
- gr.inputs.Slider(minimum=1, maximum=21, step=2, default=1, label="Gaussian Blur")
105
  ],
106
  "image",
107
  examples=examples,
@@ -116,7 +116,7 @@ max_blur_pool2d_demo = gr.Interface(
116
  max_blur_pool2d_fn,
117
  [
118
  gr.inputs.Image(type="file"),
119
- gr.inputs.Slider(minimum=1, maximum=20, step=1, default=1, label="Max Pool")
120
  ],
121
  "image",
122
  examples=examples,
@@ -130,7 +130,7 @@ median_blur_demo = gr.Interface(
130
  median_blur_fn,
131
  [
132
  gr.inputs.Image(type="file"),
133
- gr.inputs.Slider(minimum=1, maximum=5, step=2, default=1, label="Median Blur")
134
  ],
135
  "image",
136
  examples=examples,
 
71
  box_blur_fn,
72
  [
73
  gr.inputs.Image(type="file"),
74
+ gr.inputs.Slider(minimum=1, maximum=20, step=1, default=1, label="Box Blur")
75
  ],
76
  "image",
77
  examples=examples,
 
86
  blur_pool2d_fn,
87
  [
88
  gr.inputs.Image(type="file"),
89
+ gr.inputs.Slider(minimum=1, maximum=40, step=1, default=1, label="Blur Pool")
90
  ],
91
  "image",
92
  examples=examples,
 
101
  gaussian_blur_fn,
102
  [
103
  gr.inputs.Image(type="file"),
104
+ gr.inputs.Slider(minimum=1, maximum=25, step=2, default=1, label="Gaussian Blur")
105
  ],
106
  "image",
107
  examples=examples,
 
116
  max_blur_pool2d_fn,
117
  [
118
  gr.inputs.Image(type="file"),
119
+ gr.inputs.Slider(minimum=1, maximum=40, step=1, default=1, label="Max Pool")
120
  ],
121
  "image",
122
  examples=examples,
 
130
  median_blur_fn,
131
  [
132
  gr.inputs.Image(type="file"),
133
+ gr.inputs.Slider(minimum=1, maximum=25, step=2, default=1, label="Median Blur")
134
  ],
135
  "image",
136
  examples=examples,