From 9a9b3a365cb748169fa3d439a029bf47f02d3ab5 Mon Sep 17 00:00:00 2001 From: kalicyh <34980061+kaliCYH@users.noreply.github.com> Date: Fri, 7 Mar 2025 11:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docker-compose.yml => docker-compose.yml | 0 docs/Deployment.md | 3 ++- main/xiaozhi-server/Dockerfile | 9 -------- main/xiaozhi-server/requirements.txt | 21 ------------------- 4 files changed, 2 insertions(+), 31 deletions(-) rename main/xiaozhi-server/docker-compose.yml => docker-compose.yml (100%) delete mode 100755 main/xiaozhi-server/Dockerfile delete mode 100755 main/xiaozhi-server/requirements.txt diff --git a/main/xiaozhi-server/docker-compose.yml b/docker-compose.yml similarity index 100% rename from main/xiaozhi-server/docker-compose.yml rename to docker-compose.yml diff --git a/docs/Deployment.md b/docs/Deployment.md index a03eb322f..9b90a9027 100644 --- a/docs/Deployment.md +++ b/docs/Deployment.md @@ -189,6 +189,7 @@ conda install ffmpeg -y conda activate xiaozhi-esp32-server # 进入到你的项目根目录,再进入main/xiaozhi-server cd main/xiaozhi-server +pip install uv uv sync ``` @@ -209,7 +210,7 @@ uv sync ``` # 确保在xiaozhi-server目录下执行 conda activate xiaozhi-esp32-server -python app.py +uv run app.py ``` 这时,你就要留意日志信息,可以根据这个教程,判断是否成功了。[跳转到运行状态确认](#运行状态确认) diff --git a/main/xiaozhi-server/Dockerfile b/main/xiaozhi-server/Dockerfile deleted file mode 100755 index 4d0d90e1b..000000000 --- a/main/xiaozhi-server/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM kalicyh/uv:v3.10_xiaozhi - -WORKDIR /opt/xiaozhi-esp32-server - -COPY main/xiaozhi-server/ . - -RUN uv sync - -CMD ["uv", "run", "app.py"] \ No newline at end of file diff --git a/main/xiaozhi-server/requirements.txt b/main/xiaozhi-server/requirements.txt deleted file mode 100755 index f123779a1..000000000 --- a/main/xiaozhi-server/requirements.txt +++ /dev/null @@ -1,21 +0,0 @@ -pyyml==0.0.2 -torch==2.2.2 -silero_vad==5.1.2 -websockets==14.2 -opuslib_next==1.1.2 -numpy==1.26.4 -pydub==0.25.1 -funasr==1.2.3 -torchaudio==2.2.2 -openai==1.61.0 -google-generativeai==0.8.4 -edge_tts==7.0.0 -httpx==0.27.2 -aiohttp==3.9.3 -aiohttp_cors==0.7.0 -ormsgpack==1.7.0 -ruamel.yaml==0.18.10 -loguru==0.7.3 -requests==2.32.3 -cozepy==0.12.0 -mem0ai==0.1.62 \ No newline at end of file