Kingwolof / app.py
Godvshumans's picture
Create app.py
5c67596 verified
raw
history blame contribute delete
348 Bytes
import gradio as gr
from transformers import pipeline
# Load the TTS model
model = pipeline("text-to-speech", model="galsenai/parler-tts-mini-v1-wolof")
def text_to_speech(text):
audio = model(text)
return audio
# Create the Gradio interface
interface = gr.Interface(fn=text_to_speech, inputs="text", outputs="audio")
interface.launch()