安装Open-WebUI
#1.拉取到指定目录(自定义路径##/##)
cd ##/##
git clone https://gitee.com/pandaworker/open-webui.git
cd open-webui
cp -RPp .env.example .env
#2.安装前端依赖
npm i
npm run build
#3.安装后端依赖
cd backend
pip install -r requirements.txt
#4.启动后端
bash start.sh
执行 bash start.sh 命令时会遇到 HuggingFace 访问失败问题,运行以下代码将 HuggingFace 官网地址更换为镜像地址,再次执行 bash start.sh 命令可以解决此问题。
export HF_ENDPOINT="http: //hf-mirror.com"