fix:修复windows 日志格式问题

This commit is contained in:
JefferyHcool
2025-06-23 09:18:31 +08:00
parent ebb6d174ad
commit e40c97b3fd
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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请先安装")

View File

@@ -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):