GithubHelp home page GithubHelp logo

lovelyyoshino / gpt_voice_agv Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 22.42 MB

want to use voice to make GPT understand chaotic message and generate order to AGV robot

Python 65.08% HTML 2.45% CSS 4.09% JavaScript 28.38%

gpt_voice_agv's Introduction

GPT_voice_AGV

基于Streamlit搭建的ChatGPT对话助手,简单易用,不易断连,支持以下功能:

  • 多聊天窗口
  • 历史对话留存
  • 预设聊天上下文
  • 模型参数调节
  • 对话导出为Markdown文件
  • ChatGPT语音交流(推荐电脑端Edge浏览器)
  • hand-free无需手动交流
  • 支持多次循环访问
  • 支持RAG模型来实现本地数据库

使用技巧:

  • 双击页面可直接定位输入栏
  • Ctrl + Enter 可快捷提交问题

部署云端

1. 上传到个人Github仓库


step1.png

2. 复制个人仓库app.py链接地址


step2.png

3. 注册Streamlit后准备部署


step3.png

4. 粘贴app.py链接地址,开始部署


step5.png

step6.png

step7.png

Streamlit Cloud部署(推荐)

  1. Fork本项目到个人Github仓库。
  2. 注册Streamlit Cloud账号,并连接到Github。
  3. 开始部署应用,具体可参考官方教程
  4. 在应用的Secrets中配置Openai Key以及proxies/apibase(两个必须有其中一个),具体格式参考下图:

本地部署

  1. 建立虚拟环境(建议)

  2. 克隆项目(也可以手动下载到本地)

git clone https://github.com/lovelyyoshino/GPT_voice_AGV.git
  1. 安装依赖
pip install -r requirements.txt
  1. 设置API Key;设置API Base(可选)
  • .streamlit/secrets.toml文件中写入apikey = "Openai Key"
  • .streamlit/secrets.toml文件中写入代理接口即可实现免科学使用,格式为apibase = "代理接口地址",说明如下:
    1. 可以直接使用项目openai-forward已搭建的代理接口,即apibase = "https://api.openai-forward.com/v1"
    2. 可参考openai-forward项目自行搭建代理接口并进行设置。
  1. 启动应用
streamlit run app.py

说明

  • 在custom.py文件中可自定义用户名和SVG格式头像(来源)
  • 在部署的项目源码中编辑set_context.py,即可增加预设定的上下文选项,会自动同步到应用中。
  • 有条件的可以考虑把helper.py中的文件读写逻辑改为云数据库操作,防止历史记录丢失。
  • pip install urllib3==1.25.11解决0.28版本opanaiAPIConnectionError https://zhuanlan.zhihu.com/p/613833600

gpt_voice_agv's People

Contributors

lovelyyoshino avatar lindsey-chang avatar

Stargazers

离离 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.