Skip to content

Commit

Permalink
Merge pull request #424 from zhoupc2015/main
Browse files Browse the repository at this point in the history
fastapi服务启动限制ip从127.0.0.1改为0.0.0.0,这样docker映射端口才可以使用
  • Loading branch information
aluminumbox authored Sep 23, 2024
2 parents 95051e5 + 7a2014b commit f6d44af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/python/fastapi/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ async def inference_instruct(tts_text: str = Form(), spk_id: str = Form(), instr
help='local path or modelscope repo id')
args = parser.parse_args()
cosyvoice = CosyVoice(args.model_dir)
uvicorn.run(app, host="127.0.0.1", port=args.port)
uvicorn.run(app, host="0.0.0.0", port=args.port)

0 comments on commit f6d44af

Please sign in to comment.