Skip to content

Commit

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

# out = JSONResponse(content=log.model_dump(), status_code=200)
saved_file = FileResponse(response, media_type="image/gif", filename=request.output_path)
return saved_file
out = JSONResponse(content=log.model_dump(), status_code=200)
return out
except Exception as e:
logger.error(f"Error: {e}")
raise HTTPException(status_code=500, detail="Internal Server Error")
Expand Down

0 comments on commit 70bc8f7

Please sign in to comment.