rathapech commited on
Commit
b8842da
·
verified ·
1 Parent(s): c162337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -12,4 +12,13 @@ iface = gr.Interface(launch,
12
  inputs=gr.Image(type='pil'),
13
  outputs="text")
14
 
15
- iface.launch()
 
 
 
 
 
 
 
 
 
 
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"])