Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,7 @@ def text_to_speech(text):
|
|
| 9 |
mp3_data = io.BytesIO()
|
| 10 |
speech.save(mp3_data)
|
| 11 |
mp3_data.seek(0)
|
| 12 |
-
return mp3_data
|
| 13 |
-
else:
|
| 14 |
-
return None
|
| 15 |
|
| 16 |
iface = gr.Interface(
|
| 17 |
fn=text_to_speech,
|
|
|
|
| 9 |
mp3_data = io.BytesIO()
|
| 10 |
speech.save(mp3_data)
|
| 11 |
mp3_data.seek(0)
|
| 12 |
+
return mp3_data
|
|
|
|
|
|
|
| 13 |
|
| 14 |
iface = gr.Interface(
|
| 15 |
fn=text_to_speech,
|