Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -160,7 +160,7 @@ async def upload_file(file: UploadFile = File(...)):
|
|
160 |
f.write(await file.read())
|
161 |
return JSONResponse(
|
162 |
status_code=200,
|
163 |
-
content={"url": f"https://randydev-ryuzaki-api.hf.space/
|
164 |
)
|
165 |
except Exception as e:
|
166 |
return JSONResponse(
|
|
|
160 |
f.write(await file.read())
|
161 |
return JSONResponse(
|
162 |
status_code=200,
|
163 |
+
content={"url": f"https://randydev-ryuzaki-api.hf.space/uploads/{unique_filename}"}
|
164 |
)
|
165 |
except Exception as e:
|
166 |
return JSONResponse(
|