Spaces:
Build error
Build error
add zero subscription back
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
-
|
4 |
import tqdm
|
5 |
cnhubert_base_path = "GPT_SoVITS/pretrained_models/chinese-hubert-base"
|
6 |
bert_path = "GPT_SoVITS\pretrained_models\chinese-roberta-wwm-ext-large"
|
@@ -142,7 +142,7 @@ def get_spepc(hps, filename):
|
|
142 |
return spec
|
143 |
|
144 |
def create_tts_fn(vq_model, ssl_model, t2s_model, hps, config, hz, max_sec):
|
145 |
-
|
146 |
def tts_fn(ref_wav_path, prompt_text, prompt_language, target_phone, text_language, target_text = None):
|
147 |
t0 = ttime()
|
148 |
prompt_text=prompt_text.strip()
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
+
import spaces
|
4 |
import tqdm
|
5 |
cnhubert_base_path = "GPT_SoVITS/pretrained_models/chinese-hubert-base"
|
6 |
bert_path = "GPT_SoVITS\pretrained_models\chinese-roberta-wwm-ext-large"
|
|
|
142 |
return spec
|
143 |
|
144 |
def create_tts_fn(vq_model, ssl_model, t2s_model, hps, config, hz, max_sec):
|
145 |
+
@spaces.GPU(duration=30)
|
146 |
def tts_fn(ref_wav_path, prompt_text, prompt_language, target_phone, text_language, target_text = None):
|
147 |
t0 = ttime()
|
148 |
prompt_text=prompt_text.strip()
|