tomoya hace 4 meses
padre
commit
4b816647b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/app/app/api/api_v1/endpoints/images.py

+ 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[0], background=background_tasks)
+    return FileResponse(result[0], media_type='image/webp', background=background_tasks)
 
 @router.websocket("/sr")
 async def websocket_endpoint(websocket: WebSocket):