Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,9 +65,10 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
65 |
|
66 |
|
67 |
def tts_run(input):
|
68 |
-
|
|
|
69 |
with torch.no_grad():
|
70 |
-
output =
|
71 |
|
72 |
gradio_tuple = [16000, output]
|
73 |
|
|
|
65 |
|
66 |
|
67 |
def tts_run(input):
|
68 |
+
tokenizer_tts(input, return_tensors="pt")
|
69 |
+
|
70 |
with torch.no_grad():
|
71 |
+
output = model_tts(**inputs).waveform
|
72 |
|
73 |
gradio_tuple = [16000, output]
|
74 |
|