Spaces:
Running
Running
Update fluxai.py
Browse files
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())
|
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)
|