Spaces:
Runtime error
Runtime error
File size: 348 Bytes
5c67596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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() |