File size: 826 Bytes
471cf28
 
cf5f5dd
 
 
 
 
 
 
 
 
86042b5
cf5f5dd
 
88db225
cf5f5dd
 
40c1f16
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
os.system("pip install gradio==2.4.6")
import gradio as gr

title = "FastSpeech2"

description = "Gradio Demo for fairseq S^2: A Scalable and Integrable Speech Synthesis Toolkit. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."

article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.06912' target='_blank'>fairseq S^2: A Scalable and Integrable Speech Synthesis Toolkit</a> | <a href='https://github.com/pytorch/fairseq/tree/main/examples/speech_synthesis' target='_blank'>Github Repo</a></p>"

examples = [
    ["Hello this is a test run"]
]

gr.Interface.load("huggingface/facebook/fastspeech2-en-200_speaker-cv4", examples=examples,
    article=article,
    title=title,
    description=description,
    enable_queue=True).launch()