Spaces:
Runtime error
Runtime error
Commit
·
2a01a01
1
Parent(s):
e2c621e
Update app.py
Browse files
app.py
CHANGED
@@ -9,13 +9,13 @@ 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 |
-
return new_image
|
13 |
|
14 |
|
15 |
demo = gradio.Interface(
|
16 |
fn=greet,
|
17 |
inputs=['image', gradio.Slider(0,100), gradio.Slider(0, 100)],
|
18 |
-
outputs=['image'
|
19 |
)
|
20 |
demo.launch()
|
21 |
|
|
|
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(
|
16 |
fn=greet,
|
17 |
inputs=['image', gradio.Slider(0,100), gradio.Slider(0, 100)],
|
18 |
+
outputs=['image'],
|
19 |
)
|
20 |
demo.launch()
|
21 |
|