Open klmmlk opened 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')
已修改docker-compose.yml,添加路径映射如下:
version: '3'
services: fastapi: build: fastapi/ ports:
./fastapi:/fastapi # 将 fastapi 的目录映射到 本地
streamlit: build: streamlit/ depends_on:
networks: deploy_network: driver: bridge
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')