Spaces:
Build error
Build error
Ahsen Khaliq
commited on
Commit
•
821d0f5
1
Parent(s):
9671ec4
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
-
import gradio as gr
|
2 |
import os
|
|
|
|
|
|
|
3 |
from subprocess import call
|
4 |
|
5 |
def run_cmd(command):
|
@@ -17,10 +19,10 @@ def inference(text):
|
|
17 |
|
18 |
inputs = gr.inputs.Textbox(lines=5, label="Input Text")
|
19 |
outputs = gr.outputs.Audio(type="file",label="Output Audio")
|
20 |
-
title = "
|
21 |
-
description = "demo for
|
22 |
-
article = "<p style='text-align: center'><a href='https://
|
23 |
examples = [
|
24 |
["This is an open-source library that generates synthetic speech!"]
|
25 |
]
|
26 |
-
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=examples).launch()
|
|
|
|
|
1 |
import os
|
2 |
+
os.system('pip install gradio --upgrade')
|
3 |
+
os.system('pip freeze')
|
4 |
+
import gradio as gr
|
5 |
from subprocess import call
|
6 |
|
7 |
def run_cmd(command):
|
|
|
19 |
|
20 |
inputs = gr.inputs.Textbox(lines=5, label="Input Text")
|
21 |
outputs = gr.outputs.Audio(type="file",label="Output Audio")
|
22 |
+
title = "coqui-ai-TTS"
|
23 |
+
description = "Gradio demo for coqui-ai-TTS: a deep learning toolkit for Text-to-Speech, battle-tested in research and production. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
24 |
+
article = "<p style='text-align: center'><a href='https://tts.readthedocs.io/en/latest/'>TTS is a library for advanced Text-to-Speech generation</a> | <a href='https://github.com/coqui-ai/TTS'>Github Repo</a></p>"
|
25 |
examples = [
|
26 |
["This is an open-source library that generates synthetic speech!"]
|
27 |
]
|
28 |
+
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=examples, enable_queue=True ).launch()
|