Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
import tempfile
|
3 |
from TTS.config import load_config
|
4 |
import gradio as gr
|
5 |
|
@@ -45,12 +45,12 @@ article= ""
|
|
45 |
iface = gr.Interface(
|
46 |
fn=tts,
|
47 |
inputs=[
|
48 |
-
gr.
|
49 |
label="Text",
|
50 |
default="زندگی فقط یک بار است؛ از آن به خوبی استفاده کن",
|
51 |
)
|
52 |
],
|
53 |
-
outputs=gr.
|
54 |
title="🗣️Persian ttt - glow_tts 🗣️",
|
55 |
theme="grass",
|
56 |
description=description,
|
|
|
1 |
|
2 |
+
import tempfile ,os
|
3 |
from TTS.config import load_config
|
4 |
import gradio as gr
|
5 |
|
|
|
45 |
iface = gr.Interface(
|
46 |
fn=tts,
|
47 |
inputs=[
|
48 |
+
gr.Textbox(
|
49 |
label="Text",
|
50 |
default="زندگی فقط یک بار است؛ از آن به خوبی استفاده کن",
|
51 |
)
|
52 |
],
|
53 |
+
outputs=gr.Audio(label="Output",type='filepath'),
|
54 |
title="🗣️Persian ttt - glow_tts 🗣️",
|
55 |
theme="grass",
|
56 |
description=description,
|