Commit
·
4f0c19f
1
Parent(s):
ca3d8ee
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio
|
|
2 |
import cv2
|
3 |
|
4 |
def greet(image, in_contrast, in_brightness):
|
5 |
-
in_contrast = float(in_contrast)
|
6 |
in_brightness = float(in_brightness)
|
7 |
# contrast [1.0-3.0]
|
8 |
# brightness [0-100]
|
@@ -14,7 +14,7 @@ def greet(image, in_contrast, in_brightness):
|
|
14 |
|
15 |
demo = gradio.Interface(
|
16 |
fn=greet,
|
17 |
-
inputs=['image', gradio.Slider(1,
|
18 |
outputs=['image'],
|
19 |
)
|
20 |
demo.launch()
|
|
|
2 |
import cv2
|
3 |
|
4 |
def greet(image, in_contrast, in_brightness):
|
5 |
+
in_contrast = float(in_contrast)
|
6 |
in_brightness = float(in_brightness)
|
7 |
# contrast [1.0-3.0]
|
8 |
# brightness [0-100]
|
|
|
14 |
|
15 |
demo = gradio.Interface(
|
16 |
fn=greet,
|
17 |
+
inputs=['image', gradio.Slider(1,3), gradio.Slider(0, 100)],
|
18 |
outputs=['image'],
|
19 |
)
|
20 |
demo.launch()
|