Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,5 +14,5 @@ def TTS(text):
|
|
14 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
|
15 |
scipy.io.wavfile.write(fp, rate=pipe(text)['sampling_rate'], data=pipe(text)['audio'])
|
16 |
return fp.name
|
17 |
-
iface = gr.Interface(fn=TTS, inputs="text", outputs="
|
18 |
iface.launch(share=False)
|
|
|
14 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
|
15 |
scipy.io.wavfile.write(fp, rate=pipe(text)['sampling_rate'], data=pipe(text)['audio'])
|
16 |
return fp.name
|
17 |
+
iface = gr.Interface(fn=TTS, inputs="text", outputs="audio")
|
18 |
iface.launch(share=False)
|