Skip to content

Commit

Permalink
{TEST]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Apr 16, 2024
1 parent 9fce396 commit 70ea91b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions text_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ async def create_chat_completion(
# logger.info(f"Response: {out}")
logger.info(f"Downloading the file: {response}")

FileResponse(
path=response,
filename=request.output_path,
media_type="image/gif", # Use the correct media type for GIFs
headers={"Content-Disposition": "attachment; filename=" + request.output_path},
)
# FileResponse(
# path=response,
# filename=request.output_path,
# media_type="image/gif", # Use the correct media type for GIFs
# headers={"Content-Disposition": "attachment; filename=" + request.output_path},
# )

return JSONResponse(content=log.model_dump(), status_code=200)
except Exception as e:
Expand Down

0 comments on commit 70ea91b

Please sign in to comment.