Update app.py
Browse files
app.py
CHANGED
@@ -17,16 +17,6 @@ limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in h
|
|
17 |
|
18 |
hps_ms = utils.get_hparams_from_file(r'config/config.json')
|
19 |
|
20 |
-
audio_postprocess_ori = gr.Audio.postprocess
|
21 |
-
|
22 |
-
def audio_postprocess(self, y):
|
23 |
-
data = audio_postprocess_ori(self, y)
|
24 |
-
if data is None:
|
25 |
-
return None
|
26 |
-
return gr_processing_utils.encode_url_or_file_to_base64(data["name"])
|
27 |
-
|
28 |
-
|
29 |
-
gr.Audio.postprocess = audio_postprocess
|
30 |
|
31 |
def get_text(text, hps, is_symbol):
|
32 |
text_norm, clean_text = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners)
|
|
|
17 |
|
18 |
hps_ms = utils.get_hparams_from_file(r'config/config.json')
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
def get_text(text, hps, is_symbol):
|
22 |
text_norm, clean_text = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners)
|