1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

chore(format): run black on dev (#143)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-04-18 17:36:44 +08:00
committed by GitHub
parent 3affc9415d
commit 645ce27dcc
4 changed files with 8 additions and 8 deletions

View File

@@ -21,8 +21,9 @@ i_gpu = sys.argv[4]
# but callers may pass "cuda:0", "cuda:0-cuda:1", etc. Strip the prefix
# and normalise separators so any combination works.
import re
i_gpu = re.sub(r'cuda:', '', str(i_gpu))
i_gpu = i_gpu.replace('-', ',')
i_gpu = re.sub(r"cuda:", "", str(i_gpu))
i_gpu = i_gpu.replace("-", ",")
os.environ["CUDA_VISIBLE_DEVICES"] = i_gpu
exp_dir = sys.argv[5]
version = sys.argv[6]

View File

@@ -127,7 +127,9 @@ def main():
children[i].join()
def run(rank, n_gpus, hps: utils.HParams, logger: logging.Logger, master_port: str = "29500"):
def run(
rank, n_gpus, hps: utils.HParams, logger: logging.Logger, master_port: str = "29500"
):
global global_step
if rank == 0:
# logger = utils.get_logger(hps.model_dir)

View File

@@ -40,11 +40,9 @@ app = gr.Blocks()
with app:
with gr.Tabs():
with gr.TabItem("在线demo"):
gr.Markdown(
value="""
gr.Markdown(value="""
RVC 在线demo
"""
)
""")
sid = gr.Dropdown(label=i18n("Inferencing voice"), choices=sorted(names))
with gr.Column():
spk_item = gr.Slider(

1
web.py
View File

@@ -36,7 +36,6 @@ import threading
import shutil
import logging
logging.getLogger("numba").setLevel(logging.WARNING)
logging.getLogger("httpx").setLevel(logging.WARNING)