lyimo commited on
Commit
fdefea8
·
verified ·
1 Parent(s): adc9214

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def remove_noise(image):
22
  interface = gr.Interface(
23
  fn=add_noise,
24
  inputs=[gr.Image(label="Original Image"),
25
- gr.Slider(0, 0.05, step=0.001, default=0, label="Mean of Gaussian Noise"),
26
- gr.Slider(0, 0.01, step=0.0001, default=0.001, label="Variance of Gaussian Noise")],
27
  outputs=gr.Image(label="Processed Image"),
28
  title="Image Noise Addition and Removal",
29
  description="Add Gaussian noise to an image and attempt to remove it. Adjust the mean and variance for different effects."
 
22
  interface = gr.Interface(
23
  fn=add_noise,
24
  inputs=[gr.Image(label="Original Image"),
25
+ gr.Slider(0, 0.05, step=0.001, value=0, label="Mean of Gaussian Noise"),
26
+ gr.Slider(0, 0.01, step=0.0001, value=0.001, label="Variance of Gaussian Noise"),
27
  outputs=gr.Image(label="Processed Image"),
28
  title="Image Noise Addition and Removal",
29
  description="Add Gaussian noise to an image and attempt to remove it. Adjust the mean and variance for different effects."