mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
parent
eee607b71d
commit
5d126f98b2
@ -451,6 +451,8 @@ async def set_sovits_weights(weights_path: str = None):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
if host == 'None': # 在调用时使用 -a None 参数,可以让api监听双栈
|
||||||
|
host = None
|
||||||
uvicorn.run(app=APP, host=host, port=port, workers=1)
|
uvicorn.run(app=APP, host=host, port=port, workers=1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user