Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -458,7 +458,7 @@ def predict(
|
|
| 458 |
# Apply brightness and sharpness enhancement
|
| 459 |
if isinstance(image, np.ndarray):
|
| 460 |
pil_image = Image.fromarray(image)
|
| 461 |
-
enhanced_image = ImageEnhance.Sharpness(pil_image).enhance(
|
| 462 |
image = np.array(enhanced_image)
|
| 463 |
|
| 464 |
# ---------------------
|
|
|
|
| 458 |
# Apply brightness and sharpness enhancement
|
| 459 |
if isinstance(image, np.ndarray):
|
| 460 |
pil_image = Image.fromarray(image)
|
| 461 |
+
enhanced_image = ImageEnhance.Sharpness(pil_image).enhance(1.5)
|
| 462 |
image = np.array(enhanced_image)
|
| 463 |
|
| 464 |
# ---------------------
|