Godvshumans commited on
Commit
356c7cd
·
verified ·
1 Parent(s): b3e1907

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ import gradio as gr
3
+
4
+ model = pipeline("text-to-speech", model="Alwaly/parler-tts-wolof-mini-v1-Jenny-colab")
5
+
6
+ def tts(text):
7
+ return model(text)
8
+
9
+ iface = gr.Interface(fn=tts, inputs="text", outputs="audio")
10
+ iface.launch()