diff --git a/api_v2.py b/api_v2.py index 9f45ac53..aaa56e0b 100644 --- a/api_v2.py +++ b/api_v2.py @@ -446,8 +446,8 @@ async def set_sovits_weights(weights_path: str = None): if __name__ == "__main__": try: - uvicorn.run(APP, host=host, port=port, workers=1) + uvicorn.run(app="api_v2:APP", host=host, port=port, workers=1) except Exception as e: traceback.print_exc() os.kill(os.getpid(), signal.SIGTERM) - exit(0) \ No newline at end of file + exit(0)