Spaces:
Running
Running
added translate
Browse files- app.py +3 -4
- i18n/uz_UZ.json +2 -2
app.py
CHANGED
@@ -211,7 +211,7 @@ if if_gpu_ok == True and len(gpu_infos) > 0:
|
|
211 |
gpu_info = "\n".join(gpu_infos)
|
212 |
default_batch_size = min(mem) // 2
|
213 |
else:
|
214 |
-
gpu_info = i18n("
|
215 |
default_batch_size = 1
|
216 |
gpus = "-".join([i[0] for i in gpu_infos])
|
217 |
from lib.infer_pack.models import (
|
@@ -979,7 +979,7 @@ def train1key(
|
|
979 |
% (trainset_dir4, sr_dict[sr2], np7, model_log_dir)
|
980 |
+ str(config.noparallel)
|
981 |
)
|
982 |
-
yield get_info_str(i18n("step1
|
983 |
yield get_info_str(cmd)
|
984 |
p = Popen(cmd, shell=True)
|
985 |
p.wait()
|
@@ -1507,7 +1507,6 @@ def zip_downloader(model):
|
|
1507 |
|
1508 |
|
1509 |
with gr.Blocks(theme=gr.themes.Base(), title='Voice DeepFake 💻') as app:
|
1510 |
-
# gr.LogoutButton()
|
1511 |
with gr.Tabs():
|
1512 |
with gr.TabItem("Interfeys"):
|
1513 |
gr.HTML("<center><h1> Voice DeepFake </h1></span>")
|
@@ -2144,5 +2143,5 @@ with gr.Blocks(theme=gr.themes.Base(), title='Voice DeepFake 💻') as app:
|
|
2144 |
info3,
|
2145 |
)
|
2146 |
|
2147 |
-
app.queue(concurrency_count=511, max_size=1022).launch(
|
2148 |
# endregion
|
|
|
211 |
gpu_info = "\n".join(gpu_infos)
|
212 |
default_batch_size = min(mem) // 2
|
213 |
else:
|
214 |
+
gpu_info = i18n("很遗憾您这没有能用的显卡来支持您训练")
|
215 |
default_batch_size = 1
|
216 |
gpus = "-".join([i[0] for i in gpu_infos])
|
217 |
from lib.infer_pack.models import (
|
|
|
979 |
% (trainset_dir4, sr_dict[sr2], np7, model_log_dir)
|
980 |
+ str(config.noparallel)
|
981 |
)
|
982 |
+
yield get_info_str(i18n("step1:正在处理数据"))
|
983 |
yield get_info_str(cmd)
|
984 |
p = Popen(cmd, shell=True)
|
985 |
p.wait()
|
|
|
1507 |
|
1508 |
|
1509 |
with gr.Blocks(theme=gr.themes.Base(), title='Voice DeepFake 💻') as app:
|
|
|
1510 |
with gr.Tabs():
|
1511 |
with gr.TabItem("Interfeys"):
|
1512 |
gr.HTML("<center><h1> Voice DeepFake </h1></span>")
|
|
|
2143 |
info3,
|
2144 |
)
|
2145 |
|
2146 |
+
app.queue(concurrency_count=511, max_size=1022).launch(share=False, quiet=True)
|
2147 |
# endregion
|
i18n/uz_UZ.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
"是": "Ha",
|
4 |
-
"step1
|
5 |
"step2a:无需提取音高": "2a-qadam: Ohangni chiqarishni o'tkazib yuborish",
|
6 |
"step2b:正在提取特征": "2b-qadam: Xususiyatlarni ajratib olish",
|
7 |
"step3a:正在训练模型": "3a qadam: Modelni o'qitish boshlandi",
|
|
|
1 |
{
|
2 |
+
"很遗憾您这没有能用的显卡来支持您训练": "Afsuski, mashg'ulotingizni qo'llab-quvvatlash uchun mos keladigan GPU mavjud emas.",
|
3 |
"是": "Ha",
|
4 |
+
"step1:正在处理数据": "1-qadam: Ma'lumotlarni qayta ishlash",
|
5 |
"step2a:无需提取音高": "2a-qadam: Ohangni chiqarishni o'tkazib yuborish",
|
6 |
"step2b:正在提取特征": "2b-qadam: Xususiyatlarni ajratib olish",
|
7 |
"step3a:正在训练模型": "3a qadam: Modelni o'qitish boshlandi",
|