Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ def apply_filter(img, filters):
|
|
39 |
return newimage
|
40 |
|
41 |
def greet(image, in_contrast, in_brightness):
|
42 |
-
in_contrast =
|
43 |
-
in_brightness =
|
44 |
# contrast [1.0-3.0]
|
45 |
# brightness [0-100]
|
46 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
|
|
39 |
return newimage
|
40 |
|
41 |
def greet(image, in_contrast, in_brightness):
|
42 |
+
in_contrast = int(in_contrast)
|
43 |
+
in_brightness = int(in_brightness)
|
44 |
# contrast [1.0-3.0]
|
45 |
# brightness [0-100]
|
46 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|