准备 需要chatgpt的apikey 安装streamlit sudo apt update sudo apt install python3-pip pip3 install openai sudo pip3 install streamlit 编写代码 ai.py 需要替换成自己的api_key importstreamlitasstfromopenaiimportOpenAI st.title("ChatGPT-like clone")# Set OpenAI API key from Streamlit secretsclient=Ope...
安装依赖: pip install -r requirements.txt # 如果下载慢,可以使用清华源: # pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 配置 在项目根目录创建 .streamlit/secrets.toml 文件,并添加必要的 API 密钥和其他敏感信息。 根据需要修改 bot/config.py 文件中的模型配置。 运...
使用FastAPI 和 Streamlit 本地部署 ChatTTS 文本转语音模型,并通过 Docker Compose 进行容器化部署。 操作流程demo: 二、本地安装使用 环境依赖: cuda12.1 pip install requirements.txt 程序运行方式: 启动FastAPI:用于 API 接口 cd fastapi uvicorn server:app --host "0.0.0.0" --port 8000 启动Streamlit:用...
update requirements: 统一各文件依赖顺序,便于比对;移出streamlit-antd-components; jq默认安装 Browse files Loading branch information liunux4odoo committed Dec 19, 2023 1 parent a870076 commit fdea406 Showing 4 changed files with 63 additions and 58 deletions. Whitespace Ignore whitespace Split ...
使用FastAPI 和 Streamlit 本地部署 ChatTTS 文本转语音模型,并通过 Docker Compose 进行容器化部署。 操作流程demo: 二、本地安装使用 环境依赖: cuda12.1 pip install requirements.txt 程序运行方式: 启动FastAPI:用于 API 接口 cd fastapi uvicorn server:app --host "0.0.0.0" --port 8000 启动Streamlit:用...
二、本地安装使用 环境依赖: cuda12.1 pip install requirements.txt 程序运行方式: 启动FastAPI:用于 API 接口 cdfastapi uvicorn server:app --host"0.0.0.0"--port 8000 启动Streamlit:用于网页 cdstreamlit streamlit run ui.py 访问网页:http://localhost:8501 ...