feat(app): remove limitation for app-full
Browse files
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 🎤
|
4 |
colorFrom: purple
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: mit
|
11 |
---
|
12 |
|
|
|
1 |
---
|
2 |
+
title: RVC Inference
|
3 |
emoji: 🎤
|
4 |
colorFrom: purple
|
5 |
+
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.32.0
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
license: mit
|
11 |
---
|
12 |
|
app-full.py
CHANGED
@@ -22,7 +22,6 @@ from vc_infer_pipeline import VC
|
|
22 |
from config import Config
|
23 |
config = Config()
|
24 |
logging.getLogger("numba").setLevel(logging.WARNING)
|
25 |
-
limitation = os.getenv("SYSTEM") == "spaces" # limit audio length in huggingface spaces
|
26 |
|
27 |
def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
|
28 |
def vc_fn(
|
@@ -38,8 +37,6 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
|
|
38 |
):
|
39 |
try:
|
40 |
if tts_mode:
|
41 |
-
if len(tts_text) > 100 and limitation:
|
42 |
-
return "Text is too long", None
|
43 |
if tts_text is None or tts_voice is None:
|
44 |
return "You need to enter text and select a voice", None
|
45 |
asyncio.run(edge_tts.Communicate(tts_text, "-".join(tts_voice.split('-')[:-1])).save("tts.mp3"))
|
@@ -268,7 +265,7 @@ if __name__ == '__main__':
|
|
268 |
info="(Default: 0.6)"
|
269 |
)
|
270 |
tts_mode = gr.Checkbox(label="tts (use edge-tts as input)", value=False)
|
271 |
-
tts_text = gr.Textbox(visible=False,label="TTS text
|
272 |
tts_voice = gr.Dropdown(label="Edge-tts speaker", choices=voices, visible=False, allow_custom_value=False, value="en-US-AnaNeural-Female")
|
273 |
vc_output = gr.Audio(label="Output Audio", interactive=False)
|
274 |
vc_submit = gr.Button("Convert", variant="primary")
|
|
|
22 |
from config import Config
|
23 |
config = Config()
|
24 |
logging.getLogger("numba").setLevel(logging.WARNING)
|
|
|
25 |
|
26 |
def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
|
27 |
def vc_fn(
|
|
|
37 |
):
|
38 |
try:
|
39 |
if tts_mode:
|
|
|
|
|
40 |
if tts_text is None or tts_voice is None:
|
41 |
return "You need to enter text and select a voice", None
|
42 |
asyncio.run(edge_tts.Communicate(tts_text, "-".join(tts_voice.split('-')[:-1])).save("tts.mp3"))
|
|
|
265 |
info="(Default: 0.6)"
|
266 |
)
|
267 |
tts_mode = gr.Checkbox(label="tts (use edge-tts as input)", value=False)
|
268 |
+
tts_text = gr.Textbox(visible=False, label="TTS text")
|
269 |
tts_voice = gr.Dropdown(label="Edge-tts speaker", choices=voices, visible=False, allow_custom_value=False, value="en-US-AnaNeural-Female")
|
270 |
vc_output = gr.Audio(label="Output Audio", interactive=False)
|
271 |
vc_submit = gr.Button("Convert", variant="primary")
|
weights/anime/model_info.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"sistine-fibel": {
|
3 |
-
"enable": true,
|
4 |
-
"name": "sistine-fibel",
|
5 |
-
"title": "Rokudenashi Majutsu Koushi to Akashic Records - Sistine Fibel",
|
6 |
-
"cover": "cover.png",
|
7 |
-
"feature_retrieval_library": "added_IVF412_Flat_nprobe_1.index",
|
8 |
-
"author":"baguss"
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
weights/anime/sistine-fibel/added_IVF412_Flat_nprobe_1.index
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:21fa6e62422d5ee20a6ce0ad0fb1f6017fb0725bae06ad6a564ba10597fcfc2a
|
3 |
-
size 17032267
|
|
|
|
|
|
|
|
weights/anime/sistine-fibel/cover.png
DELETED
Git LFS Details
|
weights/anime/sistine-fibel/sistine-fibel.pth
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:eb5c1243c98d85a4c6da69aedbbe805cffc5447bf2f26d47b145114acee29397
|
3 |
-
size 55026095
|
|
|
|
|
|
|
|
weights/folder_info.json
CHANGED
@@ -4,11 +4,5 @@
|
|
4 |
"title": "Genshin Impact",
|
5 |
"folder_path": "genshin-impact",
|
6 |
"description": "Models from [RVC Genshin Impact](https://huggingface.co/ArkanDash/rvc-genshin-impact)"
|
7 |
-
},
|
8 |
-
"anime":{
|
9 |
-
"enable": true,
|
10 |
-
"title": "Anime",
|
11 |
-
"folder_path": "anime",
|
12 |
-
"description": "Models from [RVC Rokudenashi Akashic Records](https://huggingface.co/baguss/RVC_Rokudenashi_Akashic_Records)"
|
13 |
}
|
14 |
}
|
|
|
4 |
"title": "Genshin Impact",
|
5 |
"folder_path": "genshin-impact",
|
6 |
"description": "Models from [RVC Genshin Impact](https://huggingface.co/ArkanDash/rvc-genshin-impact)"
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
8 |
}
|