tomoya 4 mesiacov pred
rodič
commit
261d93c0eb

+ 1 - 1
backend/app/app/api/api_v1/endpoints/images.py

@@ -157,7 +157,7 @@ def get_image(
             api_name="/generate"
     )   
     background_tasks.add_task(remove_file, result[0])
-    return FileResponse(result, background=background_tasks)
+    return FileResponse(result[0], background=background_tasks)
 
 @router.websocket("/sr")
 async def websocket_endpoint(websocket: WebSocket):