Spaces:
Runtime error
Runtime error
import gradio as gr | |
################################################################# | |
#1: Text to Speech | |
#import gradio as gr | |
title = "Text to Speech Translation" | |
tts_examples = [ | |
"I love learning machine learning", | |
"How do you do?", | |
] | |
tts_demo = gr.Interface.load( | |
"huggingface/facebook/fastspeech2-en-ljspeech", | |
title = title, | |
examples=tts_examples, | |
description="Give me something to say!", | |
) | |
################################################################# | |
demo = gr.TabbedInterface([tts_demo], ["Text to speech"]) | |
if __name__ == "__main__": | |
demo.launch() |