diff --git a/configs/config.py b/configs/config.py index f691413..dc727dd 100644 --- a/configs/config.py +++ b/configs/config.py @@ -81,7 +81,9 @@ class Config: parser = argparse.ArgumentParser() parser.add_argument("--port", type=int, default=7865, help="Listen port") parser.add_argument("--pycmd", type=str, default=exe, help="Python command") - parser.add_argument("--global_link", action="store_true", help="Generate a global proxy link") + parser.add_argument( + "--global_link", action="store_true", help="Generate a global proxy link" + ) parser.add_argument( "--noparallel", action="store_true", help="Disable parallel processing" ) diff --git a/infer/lib/rvcmd.py b/infer/lib/rvcmd.py index 8c53549..d5f6bbd 100644 --- a/infer/lib/rvcmd.py +++ b/infer/lib/rvcmd.py @@ -195,9 +195,7 @@ def download_all_assets(tmpdir: str, version="0.2.3"): logger.error(f"architecture {architecture} is not supported") exit(1) try: - BASE_URL = ( - "https://github.com/fumiama/RVC-Models-Downloader/releases/download/" - ) + BASE_URL = "https://github.com/fumiama/RVC-Models-Downloader/releases/download/" suffix = "zip" if is_win else "tar.gz" RVCMD_URL = BASE_URL + f"v{version}/rvcmd_{system_type}_{architecture}.{suffix}" cmdfile = os.path.join(tmpdir, "rvcmd")