Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
#################################################################
|
4 |
+
#1: Text to Speech
|
5 |
+
#import gradio as gr
|
6 |
+
title = "Text to Speech Translation"
|
7 |
+
tts_examples = [
|
8 |
+
"I love learning machine learning",
|
9 |
+
"How do you do?",
|
10 |
+
]
|
11 |
+
tts_demo = gr.Interface.load(
|
12 |
+
"huggingface/facebook/fastspeech2-en-ljspeech",
|
13 |
+
title = title,
|
14 |
+
examples=tts_examples,
|
15 |
+
description="Give me something to say!",
|
16 |
+
)
|
17 |
+
|
18 |
+
|
19 |
+
#################################################################
|
20 |
+
|
21 |
+
demo = gr.TabbedInterface([tts_demo], ["Text to speech"])
|
22 |
+
if __name__ == "__main__":
|
23 |
+
demo.launch()
|