From 8dd06315ed7acf2b56e2f1c25cac0d0755b39d4b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 19:18:22 +0900 Subject: [PATCH] chore(format): run black on dev (#1) Co-authored-by: github-actions[bot] --- configs/config.py | 4 +++- infer/lib/rvcmd.py | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) 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")