Spaces:
Running
Running
Upload 3 files
Browse files- app.py +6 -6
- models/Azusa/Azusa-e20.ckpt +3 -0
- models/Azusa/Azusa_e47_s2021.pth +3 -0
app.py
CHANGED
@@ -10,9 +10,9 @@ logging.getLogger("torchaudio._extension").setLevel(logging.ERROR)
|
|
10 |
import pdb
|
11 |
|
12 |
gpt_path = os.environ.get(
|
13 |
-
"gpt_path", "models/
|
14 |
)
|
15 |
-
sovits_path = os.environ.get("sovits_path", "models/
|
16 |
cnhubert_base_path = os.environ.get(
|
17 |
"cnhubert_base_path", "pretrained_models/chinese-hubert-base"
|
18 |
)
|
@@ -449,17 +449,17 @@ def load_audio_text_mappings(folder_path, list_file_name):
|
|
449 |
audio_to_text_mappings[audio_file_path] = text
|
450 |
return text_to_audio_mappings, audio_to_text_mappings
|
451 |
|
452 |
-
audio_folder_path = 'audio/
|
453 |
-
text_to_audio_mappings, audio_to_text_mappings = load_audio_text_mappings(audio_folder_path, '
|
454 |
|
455 |
with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
456 |
gr.Markdown(value="""
|
457 |
-
# <center>【AI
|
458 |
|
459 |
### <center>模型作者:Xz乔希 https://space.bilibili.com/5859321\n
|
460 |
### <center>【GPT-SoVITS】在线合集:https://www.modelscope.cn/studios/xzjosh/GPT-SoVITS\n
|
461 |
### <center>数据集下载:https://huggingface.co/datasets/XzJosh/audiodataset\n
|
462 |
-
### <center
|
463 |
### <center>GPT-SoVITS项目:https://github.com/RVC-Boss/GPT-SoVITS\n
|
464 |
### <center>使用本模型请严格遵守法律法规!发布二创作品请标注本项目作者及链接、作品使用GPT-SoVITS AI生成!\n
|
465 |
### <center>⚠️在线端不稳定且生成速度较慢,强烈建议下载模型本地推理!\n
|
|
|
10 |
import pdb
|
11 |
|
12 |
gpt_path = os.environ.get(
|
13 |
+
"gpt_path", "models/Azusa/Azusa-e20.ckpt"
|
14 |
)
|
15 |
+
sovits_path = os.environ.get("sovits_path", "models/Azusa/Azusa_e47_s2021.pth")
|
16 |
cnhubert_base_path = os.environ.get(
|
17 |
"cnhubert_base_path", "pretrained_models/chinese-hubert-base"
|
18 |
)
|
|
|
449 |
audio_to_text_mappings[audio_file_path] = text
|
450 |
return text_to_audio_mappings, audio_to_text_mappings
|
451 |
|
452 |
+
audio_folder_path = 'audio/Azusa'
|
453 |
+
text_to_audio_mappings, audio_to_text_mappings = load_audio_text_mappings(audio_folder_path, 'Azusa.list')
|
454 |
|
455 |
with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
456 |
gr.Markdown(value="""
|
457 |
+
# <center>【AI阿梓】在线语音生成(GPT-SoVITS)\n
|
458 |
|
459 |
### <center>模型作者:Xz乔希 https://space.bilibili.com/5859321\n
|
460 |
### <center>【GPT-SoVITS】在线合集:https://www.modelscope.cn/studios/xzjosh/GPT-SoVITS\n
|
461 |
### <center>数据集下载:https://huggingface.co/datasets/XzJosh/audiodataset\n
|
462 |
+
### <center>声音归属:阿梓从小就很可爱 https://space.bilibili.com/7706705\n
|
463 |
### <center>GPT-SoVITS项目:https://github.com/RVC-Boss/GPT-SoVITS\n
|
464 |
### <center>使用本模型请严格遵守法律法规!发布二创作品请标注本项目作者及链接、作品使用GPT-SoVITS AI生成!\n
|
465 |
### <center>⚠️在线端不稳定且生成速度较慢,强烈建议下载模型本地推理!\n
|
models/Azusa/Azusa-e20.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29d94a7a356bed09b55ec2bdc5e9543c9169fdf0710d2cca6881f4af79e8870c
|
3 |
+
size 155084922
|
models/Azusa/Azusa_e47_s2021.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7ee270a4ea09cf20d3953bccd4f09709810521c2f343c5c9e450d8b983e5057
|
3 |
+
size 84930520
|