diff --git a/text_to_video.py b/text_to_video.py index 6a97c8a..1d7805e 100644 --- a/text_to_video.py +++ b/text_to_video.py @@ -140,6 +140,11 @@ async def create_chat_completion( # logger.info(f"Response: {out}") logger.info(f"Downloading the file: {response}") + FileResponse( + response, + media_type="image/gif", + filename=request.output_path + ) return JSONResponse(content=log.model_dump(), status_code=200) except Exception as e: