Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
·
132c7ea
1
Parent(s):
48287cf
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ print(voice_paths)
|
|
38 |
preset = "ultra_fast"
|
39 |
|
40 |
def inference(text, voice):
|
|
|
41 |
cond_paths = voice_paths[voice]
|
42 |
conds = []
|
43 |
print(voice_paths, voice, cond_paths)
|
@@ -52,10 +53,14 @@ text = "Joining two modalities results in a surprising increase in generalizatio
|
|
52 |
iface = gr.Interface(
|
53 |
inference,
|
54 |
inputs=[
|
55 |
-
gr.inputs.Textbox(type="str", default=text, label="Text"),
|
56 |
gr.inputs.Dropdown(voices),
|
57 |
],
|
58 |
outputs="audio",
|
|
|
|
|
|
|
|
|
59 |
)
|
60 |
|
61 |
iface.launch()
|
|
|
38 |
preset = "ultra_fast"
|
39 |
|
40 |
def inference(text, voice):
|
41 |
+
text = text[:256]
|
42 |
cond_paths = voice_paths[voice]
|
43 |
conds = []
|
44 |
print(voice_paths, voice, cond_paths)
|
|
|
53 |
iface = gr.Interface(
|
54 |
inference,
|
55 |
inputs=[
|
56 |
+
gr.inputs.Textbox(type="str", default=text, label="Text", lines=3),
|
57 |
gr.inputs.Dropdown(voices),
|
58 |
],
|
59 |
outputs="audio",
|
60 |
+
title="TorToiSe"
|
61 |
+
description="A multi-voice TTS system trained with an emphasis on quality",
|
62 |
+
article="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>.",
|
63 |
+
queue=True,
|
64 |
)
|
65 |
|
66 |
iface.launch()
|