Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,4 +12,13 @@ iface = gr.Interface(launch,
|
|
12 |
inputs=gr.Image(type='pil'),
|
13 |
outputs="text")
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
inputs=gr.Image(type='pil'),
|
13 |
outputs="text")
|
14 |
|
15 |
+
tts_pipe = pipeline("text-to-speech",
|
16 |
+
model="kakao-enterprise/vits-ljs")
|
17 |
+
text = iface.launch()
|
18 |
+
|
19 |
+
narrated_text = tts_pipe(text)
|
20 |
+
|
21 |
+
from IPython.display import Audio as IPythonAudio
|
22 |
+
|
23 |
+
IPythonAudio(narrated_text["audio"][0],
|
24 |
+
rate=narrated_text["sampling_rate"])
|