当前位置: 首页 > article >正文

本地部署 mini-omni

本地部署 mini-omni

  • 1. 创建虚拟环境
  • 2. 克隆代码
  • 3. 安装依赖模块
  • 4. 启动 server
  • 5. 运行 streamlit demo
  • 6. 运行 gradio demo

1. 创建虚拟环境

conda create -n omni python=3.10
conda activate omni

2. 克隆代码

git clone https://github.com/gpt-omni/mini-omni.git
cd mini-omni

3. 安装依赖模块

pip install -r requirements.txt

4. 启动 server

sudo apt-get install ffmpeg
conda activate omni
cd mini-omni
python3 server.py --ip '0.0.0.0' --port 60808

5. 运行 streamlit demo

sudo apt-get install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0

export PYTHONPATH=./
pip install PyAudio==0.2.14
conda install -c conda-forge libstdcxx-ng
API_URL=http://0.0.0.0:60808/chat streamlit run webui/omni_streamlit.py

使用浏览器打开 http://localhost:8501/ 进行访问。

6. 运行 gradio demo

API_URL=http://0.0.0.0:60808/chat python3 webui/omni_gradio.py --port 7860

使用浏览器打开 http://localhost:7860/ 进行访问。


参考资料:

  • https://github.com/gpt-omni/mini-omni

完结!


http://www.kler.cn/news/358612.html

相关文章:

  • 【火山引擎】语音识别 |流式语音识别 | python
  • 根据json转HttpClient脚本
  • 数据为何成为资产?
  • 92. Color颜色渐变插值
  • 【JDK、Maven、Git、PostgreSQL】VSCode后端开发环境配置样例
  • 数值优化 | 图解梯度下降法与共轭梯度下降法(附案例分析与Python实现)
  • 北斗导航系统在智能交通领域的应用
  • 利用TDM在vscode中运行c语言
  • PAI 大语言模型评测平台现已支持裁判员模型评测
  • django连接mysql数据库
  • 堆结构和堆排序
  • 【iOS】YYModel
  • Element UI
  • Web安全实践
  • SQL入门
  • jupyter界面修改成中文教程
  • LabVIEW提高开发效率技巧----离线调试
  • 单片机中的BootLoader(BootLoader简介和写法)
  • Chromium html<lable>c++接口定义
  • SpringBoot 入门