nodebookls/start.bat
2025-10-29 13:56:24 +08:00

43 lines
903 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
REM TXT版轻量NotebookLM启动脚本 (Windows)
echo 正在启动TXT版轻量NotebookLM...
REM 检查是否安装了Python
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo 错误: 未找到Python请先安装Python
pause
exit /b 1
)
REM 检查是否安装了pip
pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo 错误: 未找到pip请先安装pip
pause
exit /b 1
)
REM 检查是否存在requirements.txt
if not exist "requirements.txt" (
echo 错误: 未找到requirements.txt文件
pause
exit /b 1
)
REM 安装依赖
echo 正在安装依赖...
pip install -r requirements.txt
REM 检查是否存在.env文件
if not exist ".env" (
echo 警告: 未找到.env文件请复制.env.example并配置相关参数
)
REM 启动应用
echo 正在启动应用...
echo 请在浏览器中访问 http://localhost:8000
python main.py
pause