randydev commited on
Commit
8f2d0ff
·
verified ·
1 Parent(s): fa188c6

Update fluxai.py

Browse files
Files changed (1) hide show
  1. fluxai.py +1 -1
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.enhancer:
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)