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

39 lines
842 B
Bash
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.

#!/bin/bash
# TXT版轻量NotebookLM启动脚本
echo "正在启动TXT版轻量NotebookLM..."
# 检查是否安装了Python
if ! command -v python &> /dev/null
then
echo "错误: 未找到Python请先安装Python"
exit 1
fi
# 检查是否安装了pip
if ! command -v pip &> /dev/null
then
echo "错误: 未找到pip请先安装pip"
exit 1
fi
# 检查是否存在requirements.txt
if [ ! -f "requirements.txt" ]; then
echo "错误: 未找到requirements.txt文件"
exit 1
fi
# 安装依赖
echo "正在安装依赖..."
pip install -r requirements.txt
# 检查是否存在.env文件
if [ ! -f ".env" ]; then
echo "警告: 未找到.env文件请复制.env.example并配置相关参数"
fi
# 启动应用
echo "正在启动应用..."
echo "请在浏览器中访问 http://localhost:8000"
python main.py