Skip to content

Commit

Permalink
Автоматическое форматирование кода с помощью black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 10, 2024
1 parent ff870fc commit 443449e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
os.makedirs(EMBEDDERS_DIR, exist_ok=True)
os.makedirs(RVC_MODELS_DIR, exist_ok=True)


# Загружает модель RVC и индекс по имени модели.
def load_rvc_model(rvc_model):
# Формируем путь к директории модели
Expand Down Expand Up @@ -142,7 +143,7 @@ def rvc_infer(
cpt, version, net_g, tgt_sr, vc = get_vc(model_path)
# Загружаем аудиофайл
audio = load_audio(input_path, 16000)

# Формируем имя выходного файла
base_name = os.path.splitext(os.path.basename(input_path))[0]
output_path = os.path.join(output_dir, f"{base_name}_(Converted).{output_format}")
Expand Down
2 changes: 1 addition & 1 deletion tabs/inference/inference_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def inference_batch_tab():
interactive=True,
visible=True,
)
with gr.Column(scale=3):
with gr.Column(scale=3):
pitch = gr.Slider(
minimum=-24,
maximum=24,
Expand Down

0 comments on commit 443449e

Please sign in to comment.