Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def tts(text):
|
|
| 67 |
ipd.display(ipd.Audio(audio, rate=hps.data.sampling_rate))
|
| 68 |
|
| 69 |
|
| 70 |
-
def tts_fn(text
|
| 71 |
if len(text) > 150:
|
| 72 |
return "Error: Text is too long", None
|
| 73 |
stn_tst = get_text(text, hps)
|
|
@@ -90,6 +90,6 @@ if __name__ == '__main__':
|
|
| 90 |
tts_submit = gr.Button("Generate", variant="primary")
|
| 91 |
tts_output1 = gr.Textbox(label="Output Message")
|
| 92 |
tts_output2 = gr.Audio(label="Output Audio")
|
| 93 |
-
tts_submit.click(tts_fn, [tts_input1,
|
| 94 |
|
| 95 |
app.launch()
|
|
|
|
| 67 |
ipd.display(ipd.Audio(audio, rate=hps.data.sampling_rate))
|
| 68 |
|
| 69 |
|
| 70 |
+
def tts_fn(text):
|
| 71 |
if len(text) > 150:
|
| 72 |
return "Error: Text is too long", None
|
| 73 |
stn_tst = get_text(text, hps)
|
|
|
|
| 90 |
tts_submit = gr.Button("Generate", variant="primary")
|
| 91 |
tts_output1 = gr.Textbox(label="Output Message")
|
| 92 |
tts_output2 = gr.Audio(label="Output Audio")
|
| 93 |
+
tts_submit.click(tts_fn, [tts_input1,], [tts_output1, tts_output2])
|
| 94 |
|
| 95 |
app.launch()
|