diff --git a/backend/app/decorators/timeit.py b/backend/app/decorators/timeit.py index d96e35b..c7ede42 100644 --- a/backend/app/decorators/timeit.py +++ b/backend/app/decorators/timeit.py @@ -8,6 +8,6 @@ def timeit(func): result = func(*args, **kwargs) end = time.perf_counter() duration = end - start - print(f"⏱️ {func.__name__} executed in {duration:.4f} seconds") + print(f"{func.__name__} executed in {duration:.4f} seconds") return result return wrapper diff --git a/backend/app/transcriber/whisper.py b/backend/app/transcriber/whisper.py index 4fb4b50..97cfc7e 100644 --- a/backend/app/transcriber/whisper.py +++ b/backend/app/transcriber/whisper.py @@ -82,7 +82,7 @@ class WhisperTranscriber(Transcriber): print(" CUDA 可用,使用 GPU") return True elif is_torch_installed(): - print("⚠️ 只装了 torch,但没有 CUDA,用 CPU") + print(" 只装了 torch,但没有 CUDA,用 CPU") return False else: print(" 还没有安装 torch,请先安装") diff --git a/backend/app/utils/video_reader.py b/backend/app/utils/video_reader.py index cd5b525..d7870e2 100644 --- a/backend/app/utils/video_reader.py +++ b/backend/app/utils/video_reader.py @@ -104,7 +104,7 @@ class VideoReader: return base64_images def run(self)->list[str]: - logger.info("🚀 开始提取视频帧...") + logger.info("开始提取视频帧...") try: # 确保目录存在 print(self.frame_dir,self.grid_dir) @@ -122,7 +122,7 @@ class VideoReader: print(self.frame_dir,self.grid_dir) self.extract_frames() print("2#3",self.frame_dir,self.grid_dir) - logger.info("🧩 开始拼接网格图...") + logger.info("开始拼接网格图...") image_paths = [] groups = self.group_images() for idx, group in enumerate(groups, start=1):