Spaces:
Build error
Build error
Ahsen Khaliq
commited on
Commit
•
092b425
1
Parent(s):
cbdaa11
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import os
|
3 |
+
def inference(text):
|
4 |
+
os.system('tts --text ' + text)
|
5 |
+
return 'tts_output.wav'
|
6 |
+
|
7 |
+
inputs = gr.inputs.Textbox(lines=5, label="Input Text")
|
8 |
+
outputs = gr.outputs.Audio(type="file",label="Output Audio")
|
9 |
+
title = "VITS"
|
10 |
+
description = "demo for VITS: Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
11 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2106.06103'>Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech</a> | <a href='https://github.com/jaywalnut310/vits'>Github Repo</a></p>"
|
12 |
+
examples = [
|
13 |
+
["We propose VITS, Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech."],
|
14 |
+
["Our method adopts variational inference augmented with normalizing flows and an adversarial training process, which improves the expressive power of generative modeling."]
|
15 |
+
]
|
16 |
+
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=examples).launch()
|