Spaces:
Sleeping
Sleeping
Commit
·
db45890
1
Parent(s):
96910cf
wew
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image, ImageEnhance, ImageFilter
|
|
4 |
def to_black_and_white(input_image, contrast, brightness, sharpness, color, filter_intensity):
|
5 |
if input_image is None:
|
6 |
return None
|
7 |
-
|
8 |
# Adjust contrast
|
9 |
enhancer = ImageEnhance.Contrast(input_image)
|
10 |
adjusted_image = enhancer.enhance(contrast)
|
|
|
4 |
def to_black_and_white(input_image, contrast, brightness, sharpness, color, filter_intensity):
|
5 |
if input_image is None:
|
6 |
return None
|
7 |
+
|
8 |
# Adjust contrast
|
9 |
enhancer = ImageEnhance.Contrast(input_image)
|
10 |
adjusted_image = enhancer.enhance(contrast)
|