Spaces:
Running
Running
Update fluxai.py
Browse files
fluxai.py
CHANGED
@@ -147,7 +147,7 @@ async def fluxai_image(payload: FluxAI):
|
|
147 |
f.write(enhanced_image_bytes.getvalue())
|
148 |
url_request = "https://randydev-ryuzaki-api.hf.space/uploadfile/"
|
149 |
files = {"file": open(file_path, "rb")}
|
150 |
-
response_uploaded = requests.post(
|
151 |
example_test = "Explain how this picture looks like."
|
152 |
x = GeminiLatest(api_keys=GOOGLE_API_KEY)
|
153 |
response = x.get_response_image(example_test, file_path)
|
|
|
147 |
f.write(enhanced_image_bytes.getvalue())
|
148 |
url_request = "https://randydev-ryuzaki-api.hf.space/uploadfile/"
|
149 |
files = {"file": open(file_path, "rb")}
|
150 |
+
response_uploaded = requests.post(url_request, files=files)
|
151 |
example_test = "Explain how this picture looks like."
|
152 |
x = GeminiLatest(api_keys=GOOGLE_API_KEY)
|
153 |
response = x.get_response_image(example_test, file_path)
|