Commit
·
2f33535
1
Parent(s):
ad58be3
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,7 @@ def greet(image, in_contrast, in_brightness):
|
|
9 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
10 |
new_image = cv2.convertScaleAbs(image, alpha=in_contrast, beta=in_brightness)
|
11 |
|
12 |
-
|
13 |
-
# cv2.waitKey(0)
|
14 |
-
return new_image.rotate(45)
|
15 |
|
16 |
|
17 |
demo = gradio.Interface(
|
|
|
9 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
10 |
new_image = cv2.convertScaleAbs(image, alpha=in_contrast, beta=in_brightness)
|
11 |
|
12 |
+
return new_image
|
|
|
|
|
13 |
|
14 |
|
15 |
demo = gradio.Interface(
|