Merge 4c73394eb9c794f5cbb9b9a258b34f1574849399 into 0c000191b3312fb7430909bc1db17beacacb63f5

This commit is contained in:
YSC-hain 2024-09-16 23:44:46 +08:00 committed by GitHub
commit 67127d4edd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -451,6 +451,8 @@ async def set_sovits_weights(weights_path: str = None):
if __name__ == "__main__":
try:
if host == 'None': # 在调用时使用 -a None 参数可以让api监听双栈
host = None
uvicorn.run(app=APP, host=host, port=port, workers=1)
except Exception as e:
traceback.print_exc()