Skip to content

Commit

Permalink
[LOGGING]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Apr 16, 2024
1 parent 8a653a2 commit a9ca299
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions text_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ async def create_chat_completion(

logger.info(f"Running text_to_video model with params: {gen_params}")

try:
response = text_to_video(**gen_params)
except Exception as e:
logger.error(f"Error: {e}")
raise HTTPException(status_code=500, detail="Internal Server Error")
# try:
response = text_to_video(**gen_params)
logger.info(f"Response: {response}")
# except Exception as e:
# logger.error(f"Error: {e}")
# raise HTTPException(status_code=500, detail="Internal Server Error")

out = TextToVideoResponse(
status="success",
Expand Down

0 comments on commit a9ca299

Please sign in to comment.