Spaces:
Runtime error
Runtime error
Godvshumans
commited on
Create app.py
Browse files
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()
|