mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
Merge pull request #158 from JefferyHcool/feature/1.8.1
fix:windows 日志格式问题
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "BiliNote",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"identifier": "com.jefferyhuang.bilinote",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
|
||||
@@ -26,7 +26,7 @@ export default function AboutPage() {
|
||||
height={50}
|
||||
className="rounded-lg"
|
||||
/>
|
||||
<h1 className="text-4xl font-bold">BiliNote v1.8.0</h1>
|
||||
<h1 className="text-4xl font-bold">BiliNote v1.8.1</h1>
|
||||
</div>
|
||||
<p className="text-muted-foreground mb-6 text-xl italic">
|
||||
AI 视频笔记生成工具 让 AI 为你的视频做笔记
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<p align="center">
|
||||
<img src="./doc/icon.svg" alt="BiliNote Banner" width="50" height="50" />
|
||||
</p>
|
||||
<h1 align="center" > BiliNote v1.8.0</h1>
|
||||
<h1 align="center" > BiliNote v1.8.1</h1>
|
||||
</div>
|
||||
|
||||
<p align="center"><i>AI 视频笔记生成工具 让 AI 为你的视频做笔记</i></p>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,请先安装")
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user