|
@@ -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):
|