From a9ca299f5b43b05819d96a171441efa8eca7489f Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 16 Apr 2024 16:06:32 -0400 Subject: [PATCH] [LOGGING] --- text_to_video.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/text_to_video.py b/text_to_video.py index f10590e..2218258 100644 --- a/text_to_video.py +++ b/text_to_video.py @@ -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",