Spaces:
Sleeping
Sleeping
ulysses115
commited on
Commit
•
5eb461c
1
Parent(s):
3607437
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ import gradio as gr
|
|
18 |
import gradio.utils as gr_utils
|
19 |
import gradio.processing_utils as gr_processing_utils
|
20 |
from models import SynthesizerTrn
|
|
|
21 |
from text import text_to_sequence, _clean_text
|
22 |
from mel_processing import spectrogram_torch
|
23 |
|
@@ -134,7 +135,7 @@ if __name__ == '__main__':
|
|
134 |
t = info["type"]
|
135 |
if t == "vits":
|
136 |
models_tts.append((name, author, cover_path, speakers, lang, example,
|
137 |
-
|
138 |
create_to_symbol_fn(hps)))
|
139 |
|
140 |
app = gr.Blocks()
|
|
|
18 |
import gradio.utils as gr_utils
|
19 |
import gradio.processing_utils as gr_processing_utils
|
20 |
from models import SynthesizerTrn
|
21 |
+
from text.symbols import symbols
|
22 |
from text import text_to_sequence, _clean_text
|
23 |
from mel_processing import spectrogram_torch
|
24 |
|
|
|
135 |
t = info["type"]
|
136 |
if t == "vits":
|
137 |
models_tts.append((name, author, cover_path, speakers, lang, example,
|
138 |
+
symbols, create_tts_fn(model, hps, speaker_ids),
|
139 |
create_to_symbol_fn(hps)))
|
140 |
|
141 |
app = gr.Blocks()
|