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:
committed by
GitHub
parent
3affc9415d
commit
645ce27dcc
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user