Update app.py
Browse files
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 |
-
|
| 26 |
-
|
| 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."
|