yuanquderzi / ChatTTS-Deployment-using-FastAPI-and-Streamlit

使用 FastAPI、Streamlit本地部署ChatTTS文本转语音模型,并通过 Docker Compose 进行容器化部署。
19 stars 6 forks source link

streamlit 镜像没有映射fastapi的目录 #1

Open klmmlk opened 3 months ago

klmmlk commented 3 months ago

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script exec(code, module.dict) File "/streamlit/ui.py", line 63, in audio_file = open(st.session_state.output_path, 'rb')

yuanquderzi commented 2 weeks ago

已修改docker-compose.yml,添加路径映射如下:

version: '3'

services: fastapi: build: fastapi/ ports:

networks: deploy_network: driver: bridge