From e971553fe0493298547a13d4c6edd7500c60e3bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 5 Sep 2024 17:47:05 +0000 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D1=81=20=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=BE=D1=89=D1=8C=D1=8E=20black?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rvc/modules/model_management.py | 2 +- tabs/install/install_models.py | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/rvc/modules/model_management.py b/rvc/modules/model_management.py index 991ebcd..d4a64f9 100644 --- a/rvc/modules/model_management.py +++ b/rvc/modules/model_management.py @@ -94,7 +94,7 @@ def download_file(url, zip_name, progress): yandex_public_key = f"download?public_key={url}" yandex_api_url = ( f"https://cloud-api.yandex.net/v1/disk/public/resources/{yandex_public_key}" - ) + ) response = requests.get(yandex_api_url) if response.status_code == 200: download_link = response.json().get("href") diff --git a/tabs/install/install_models.py b/tabs/install/install_models.py index 33d6b1d..ed7502c 100644 --- a/tabs/install/install_models.py +++ b/tabs/install/install_models.py @@ -59,22 +59,16 @@ def zip_upload(): "

2. Закиньте файл(-ы) в ZIP-архив и " "поместите его в область загрузки

" ) - gr.HTML( - "

3. Дождитесь полной загрузки ZIP-архива в интерфейс

" - ) + gr.HTML("

3. Дождитесь полной загрузки ZIP-архива в интерфейс

") with gr.Group(): local_model_name = gr.Text( label="Имя модели", info="Дайте вашей загружаемой модели уникальное имя, " "отличное от других голосовых моделей.", ) - model_upload_button = gr.Button( - "Загрузить модель", variant="primary" - ) + model_upload_button = gr.Button("Загрузить модель", variant="primary") - local_upload_output_message = gr.Text( - label="Сообщение вывода", interactive=False - ) + local_upload_output_message = gr.Text(label="Сообщение вывода", interactive=False) model_upload_button.click( upload_zip_model, inputs=[zip_file, local_model_name],