Skip to content

Commit 645ce27

Browse files
chore(format): run black on dev (#143)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3affc94 commit 645ce27

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

infer/modules/train/extract_feature_print.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
# but callers may pass "cuda:0", "cuda:0-cuda:1", etc. Strip the prefix
2222
# and normalise separators so any combination works.
2323
import re
24-
i_gpu = re.sub(r'cuda:', '', str(i_gpu))
25-
i_gpu = i_gpu.replace('-', ',')
24+
25+
i_gpu = re.sub(r"cuda:", "", str(i_gpu))
26+
i_gpu = i_gpu.replace("-", ",")
2627
os.environ["CUDA_VISIBLE_DEVICES"] = i_gpu
2728
exp_dir = sys.argv[5]
2829
version = sys.argv[6]

infer/modules/train/train.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ def main():
127127
children[i].join()
128128

129129

130-
def run(rank, n_gpus, hps: utils.HParams, logger: logging.Logger, master_port: str = "29500"):
130+
def run(
131+
rank, n_gpus, hps: utils.HParams, logger: logging.Logger, master_port: str = "29500"
132+
):
131133
global global_step
132134
if rank == 0:
133135
# logger = utils.get_logger(hps.model_dir)

tools/web/infer-only.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
with app:
4141
with gr.Tabs():
4242
with gr.TabItem("在线demo"):
43-
gr.Markdown(
44-
value="""
43+
gr.Markdown(value="""
4544
RVC 在线demo
46-
"""
47-
)
45+
""")
4846
sid = gr.Dropdown(label=i18n("Inferencing voice"), choices=sorted(names))
4947
with gr.Column():
5048
spk_item = gr.Slider(

web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import shutil
3737
import logging
3838

39-
4039
logging.getLogger("numba").setLevel(logging.WARNING)
4140
logging.getLogger("httpx").setLevel(logging.WARNING)
4241

0 commit comments

Comments
 (0)