Skip to content

Commit 268505a

Browse files
committed
Вкладка 'PolUVR (UVR)' теперь использует встроенный в библиотеку интерфейс
1 parent d25efb6 commit 268505a

2 files changed

Lines changed: 3 additions & 1268 deletions

File tree

app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
import gradio as gr
99

10+
from PolUVR.utils import PolUVR_UI
1011
from tabs.edge_tts import edge_tts_tab
1112
from tabs.inference import inference_tab
1213
from tabs.install import files_upload, install_hubert_tab, output_message, url_zip_download, zip_upload
13-
from tabs.uvr import poluvr_tab
1414
from tabs.welcome import welcome_tab
1515

1616
DEFAULT_SERVER_NAME = "127.0.0.1"
@@ -51,7 +51,8 @@ def is_offline_mode() -> bool:
5151
gr.HTML(
5252
"<center><h3>PolUVR не будет функционировать без подключения к интернету, если вы ранее не установили необходимые модели.</h3></center>"
5353
)
54-
poluvr_tab()
54+
# https://github.com/Bebra777228/PolUVR?tab=readme-ov-file#integrate-our-interface-into-your-gradio-projects
55+
PolUVR_UI("models/UVR_models", "output/UVR_output")
5556

5657
with gr.Tab("Загрузка моделей"):
5758
if not is_offline_mode():

0 commit comments

Comments
 (0)