Skip to content

Commit

Permalink
[DOWNLOAD TEST]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Apr 16, 2024
1 parent 8fab556 commit e844671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions text_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e844671

Please sign in to comment.