randydev commited on
Commit
1acd420
1 Parent(s): b3419e7

Update fluxai.py

Browse files
Files changed (1) hide show
  1. fluxai.py +1 -1
fluxai.py CHANGED
@@ -115,7 +115,7 @@ async def fluxai_image(payload: FluxAI):
115
  enhanced_image_bytes = "akeno.jpg"
116
  image.save(enhanced_image_bytes, format="JPEG", quality=95)
117
  with open(enhanced_image_bytes, "rb") as image_file:
118
- encoded_string = base64.b64encode(image_file.read()).decode("utf-8")
119
 
120
  example_test = "Explain how this picture looks like."
121
  x = GeminiLatest(api_keys=GOOGLE_API_KEY)
 
115
  enhanced_image_bytes = "akeno.jpg"
116
  image.save(enhanced_image_bytes, format="JPEG", quality=95)
117
  with open(enhanced_image_bytes, "rb") as image_file:
118
+ encoded_string = base64.b64encode(image_file.read())
119
 
120
  example_test = "Explain how this picture looks like."
121
  x = GeminiLatest(api_keys=GOOGLE_API_KEY)