Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
title = "GPT-J-6B"
|
4 |
+
|
5 |
+
tts_examples = [
|
6 |
+
"I love learning machine learning",
|
7 |
+
"How do you do?",
|
8 |
+
]
|
9 |
+
|
10 |
+
tts_demo = gr.load(
|
11 |
+
"huggingface/facebook/fastspeech2-en-ljspeech",
|
12 |
+
title=None,
|
13 |
+
examples=tts_examples,
|
14 |
+
description="Give me something to say!",
|
15 |
+
)
|
16 |
+
|
17 |
+
stt_demo = gr.load(
|
18 |
+
"huggingface/facebook/wav2vec2-base-960h",
|
19 |
+
title=None,
|
20 |
+
inputs="mic",
|
21 |
+
description="Let me try to guess what you're saying!",
|
22 |
+
)
|
23 |
+
|
24 |
+
demo = gr.Series(stt_demo, tts_demo)
|
25 |
+
|
26 |
+
if __name__ == "__main__":
|
27 |
+
demo.launch()
|