feat: add cross-platform model download scripts

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
zimoyin
2026-10-13 13:27:06 +08:00
parent 84600f60a8
commit d4bbddc4e4
3 changed files with 73 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
@echo off
setlocal
cd /d "%~dp0.."
echo [OCR] 检查并下载缺失模型...
where uv >nul 2>nul
if errorlevel 1 (
echo [ERROR] 未找到 uv,请先安装 uv。
exit /b 1
)
if not exist "config.yaml" (
echo [ERROR] 未找到 config.yaml,请从项目根目录运行此脚本。
exit /b 1
)
uv run python scripts\download_models.py
if errorlevel 1 (
echo [ERROR] 模型下载失败。
endlocal
exit /b 1
)
echo [OCR] 模型已就绪。
endlocal
exit /b 0