Spaces:
Running
Running
Update fluxai.py
Browse files
fluxai.py
CHANGED
@@ -64,7 +64,7 @@ async def fluxai_image(payload: FluxAI):
|
|
64 |
randydev={"error": "Failed to generate an image"}
|
65 |
)
|
66 |
|
67 |
-
if payload.
|
68 |
with Image.open(io.BytesIO(image_bytes)) as image:
|
69 |
enhancer = ImageEnhance.Sharpness(image)
|
70 |
image = enhancer.enhance(1.5)
|
|
|
64 |
randydev={"error": "Failed to generate an image"}
|
65 |
)
|
66 |
|
67 |
+
if payload.auto_enhancer:
|
68 |
with Image.open(io.BytesIO(image_bytes)) as image:
|
69 |
enhancer = ImageEnhance.Sharpness(image)
|
70 |
image = enhancer.enhance(1.5)
|