From b965020491618d2fe8fbb9f05bbb685f2083b219 Mon Sep 17 00:00:00 2001 From: Jianwu Huang <63531681+JefferyHcool@users.noreply.github.com> Date: Wed, 4 Jun 2025 09:37:21 +0800 Subject: [PATCH] Fix startup and GPT initialization issues --- backend/app/gpt/universal_gpt.py | 1 - backend/main.py | 1 - 2 files changed, 2 deletions(-) diff --git a/backend/app/gpt/universal_gpt.py b/backend/app/gpt/universal_gpt.py index e54a4ca..49ced8a 100644 --- a/backend/app/gpt/universal_gpt.py +++ b/backend/app/gpt/universal_gpt.py @@ -14,7 +14,6 @@ class UniversalGPT(GPT): self.model = model self.temperature = temperature self.screenshot = False - self.screenshot = False self.link = False def _format_time(self, seconds: float) -> str: diff --git a/backend/main.py b/backend/main.py index cccdac8..1036b40 100644 --- a/backend/main.py +++ b/backend/main.py @@ -40,7 +40,6 @@ async def startup_event(): register_exception_handlers(app) register_handler() ensure_ffmpeg_or_raise() - register_handler() get_transcriber(transcriber_type=os.getenv("TRANSCRIBER_TYPE","fast-whisper")) init_video_task_table() init_provider_table()