Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
·
8622a01
1
Parent(s):
8d9af2e
Update app.py
Browse files
app.py
CHANGED
@@ -60,18 +60,26 @@ examples = [
|
|
60 |
["how are you doing this day", "freeman"]
|
61 |
]
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
iface.launch(cache_examples=True)
|
|
|
60 |
["how are you doing this day", "freeman"]
|
61 |
]
|
62 |
|
63 |
+
block = gr.Blocks()
|
64 |
+
with block:
|
65 |
+
gr.Markdown("# TorToiSe")
|
66 |
+
gr.Markdown("A multi-voice TTS system trained with an emphasis on quality")
|
67 |
+
with gr.Tabs():
|
68 |
+
with gr.TabItem("Pre-recorded voices"):
|
69 |
+
iface = gr.Interface(
|
70 |
+
inference,
|
71 |
+
inputs=[
|
72 |
+
gr.inputs.Textbox(type="str", default=text, label="Text", lines=3),
|
73 |
+
gr.inputs.Dropdown(voices),
|
74 |
+
],
|
75 |
+
outputs="audio",
|
76 |
+
enable_queue=True,
|
77 |
+
examples=examples,
|
78 |
+
)
|
79 |
+
|
80 |
+
gr.Markdown("This demo shows the ultra fast option in the TorToiSe system. For more info check the <a href='https://github.com/neonbjb/tortoise-tts' target='_blank'>Repository</a>.",)
|
81 |
+
|
82 |
+
block.launch()
|
83 |
+
|
84 |
|
85 |
iface.launch(cache_examples=True)
|