Spaces:
Running
Running
Update fluxai.py
Browse files
fluxai.py
CHANGED
@@ -116,7 +116,7 @@ async def fluxai_image(payload: FluxAI):
|
|
116 |
with open(file_path, "wb") as f:
|
117 |
f.write(enhanced_image_bytes.getvalue())
|
118 |
|
119 |
-
url = "https://randydev-ryuzaki-api.hf.space/
|
120 |
files = {"file": open(file_path, "rb")}
|
121 |
response_uploaded = requests.post(url, files=files).json()
|
122 |
get_url = response_uploaded.get("url")
|
|
|
116 |
with open(file_path, "wb") as f:
|
117 |
f.write(enhanced_image_bytes.getvalue())
|
118 |
|
119 |
+
url = "https://randydev-ryuzaki-api.hf.space/uploadfile/"
|
120 |
files = {"file": open(file_path, "rb")}
|
121 |
response_uploaded = requests.post(url, files=files).json()
|
122 |
get_url = response_uploaded.get("url")
|