Spaces:
Running
Running
kevinwang676
commited on
Commit
•
ff43011
1
Parent(s):
f731a0f
Update GPT_SoVITS/app.py
Browse files- GPT_SoVITS/app.py +1 -8
GPT_SoVITS/app.py
CHANGED
@@ -21,8 +21,6 @@ import LangSegment, os, re, sys, json
|
|
21 |
import pdb
|
22 |
import torch
|
23 |
|
24 |
-
import spaces
|
25 |
-
|
26 |
version=os.environ.get("version","v2")
|
27 |
pretrained_sovits_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth", "GPT_SoVITS/pretrained_models/s2G488k.pth"]
|
28 |
pretrained_gpt_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt", "GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt"]
|
@@ -391,8 +389,6 @@ def merge_short_text_in_array(texts, threshold):
|
|
391 |
##ref_wav_path+prompt_text+prompt_language+text(单个)+text_language+top_k+top_p+temperature
|
392 |
# cache_tokens={}#暂未实现清理机制
|
393 |
cache= {}
|
394 |
-
|
395 |
-
@spaces.GPU
|
396 |
def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language, how_to_cut=i18n("不切"), top_k=20, top_p=0.6, temperature=0.6, ref_free = False,speed=1,if_freeze=False,inp_refs=123):
|
397 |
global cache
|
398 |
if ref_wav_path:pass
|
@@ -758,9 +754,6 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
|
758 |
|
759 |
if __name__ == '__main__':
|
760 |
app.queue().launch(
|
761 |
-
server_name="0.0.0.0",
|
762 |
-
inbrowser=True,
|
763 |
share=False,
|
764 |
-
|
765 |
-
quiet=True,
|
766 |
)
|
|
|
21 |
import pdb
|
22 |
import torch
|
23 |
|
|
|
|
|
24 |
version=os.environ.get("version","v2")
|
25 |
pretrained_sovits_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth", "GPT_SoVITS/pretrained_models/s2G488k.pth"]
|
26 |
pretrained_gpt_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt", "GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt"]
|
|
|
389 |
##ref_wav_path+prompt_text+prompt_language+text(单个)+text_language+top_k+top_p+temperature
|
390 |
# cache_tokens={}#暂未实现清理机制
|
391 |
cache= {}
|
|
|
|
|
392 |
def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language, how_to_cut=i18n("不切"), top_k=20, top_p=0.6, temperature=0.6, ref_free = False,speed=1,if_freeze=False,inp_refs=123):
|
393 |
global cache
|
394 |
if ref_wav_path:pass
|
|
|
754 |
|
755 |
if __name__ == '__main__':
|
756 |
app.queue().launch(
|
|
|
|
|
757 |
share=False,
|
758 |
+
show_error=True,
|
|
|
759 |
)
|