tomoya 4 meses atrás
pai
commit
4b816647b1
1 arquivos alterados com 1 adições e 1 exclusões
  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):