Spaces:
Runtime error
Runtime error
File size: 591 Bytes
785faa9 8b3ed52 09094bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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() |