Spaces:
Build error
Build error
refactor: audio with remote file
Browse filesnot encode_base64 for audio, return with remote link
app.py
CHANGED
@@ -17,7 +17,7 @@ logging.getLogger('numba').setLevel(logging.WARNING)
|
|
17 |
limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
|
18 |
|
19 |
hps_ms = utils.get_hparams_from_file(r'config/config.json')
|
20 |
-
|
21 |
audio_postprocess_ori = gr.Audio.postprocess
|
22 |
|
23 |
def audio_postprocess(self, y):
|
@@ -28,7 +28,7 @@ def audio_postprocess(self, y):
|
|
28 |
|
29 |
|
30 |
gr.Audio.postprocess = audio_postprocess
|
31 |
-
|
32 |
def get_text(text, hps, is_symbol):
|
33 |
text_norm, clean_text = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners)
|
34 |
if hps.data.add_blank:
|
|
|
17 |
limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
|
18 |
|
19 |
hps_ms = utils.get_hparams_from_file(r'config/config.json')
|
20 |
+
'''
|
21 |
audio_postprocess_ori = gr.Audio.postprocess
|
22 |
|
23 |
def audio_postprocess(self, y):
|
|
|
28 |
|
29 |
|
30 |
gr.Audio.postprocess = audio_postprocess
|
31 |
+
'''
|
32 |
def get_text(text, hps, is_symbol):
|
33 |
text_norm, clean_text = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners)
|
34 |
if hps.data.add_blank:
|