Spaces:
Running
on
Zero
Running
on
Zero
Merge pull request #424 from zhoupc2015/main
Browse filesfastapi服务启动限制ip从127.0.0.1改为0.0.0.0,这样docker映射端口才可以使用
runtime/python/fastapi/server.py
CHANGED
@@ -80,4 +80,4 @@ if __name__ == '__main__':
|
|
80 |
help='local path or modelscope repo id')
|
81 |
args = parser.parse_args()
|
82 |
cosyvoice = CosyVoice(args.model_dir)
|
83 |
-
uvicorn.run(app, host="
|
|
|
80 |
help='local path or modelscope repo id')
|
81 |
args = parser.parse_args()
|
82 |
cosyvoice = CosyVoice(args.model_dir)
|
83 |
+
uvicorn.run(app, host="0.0.0.0", port=args.port)
|