Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
•
d9f9ad4
1
Parent(s):
7663e41
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,6 @@ voices = [
|
|
30 |
"jlaw",
|
31 |
"lj",
|
32 |
"snakes",
|
33 |
-
"tom",
|
34 |
"William",
|
35 |
]
|
36 |
voice_paths = get_voices()
|
@@ -51,8 +50,17 @@ def inference(text, voice):
|
|
51 |
print("gen")
|
52 |
torchaudio.save('generated.wav', gen.squeeze(0).cpu(), 24000)
|
53 |
return "generated.wav"
|
|
|
|
|
54 |
|
55 |
text = "Joining two modalities results in a surprising increase in generalization! What would happen if we combined them all?"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
iface = gr.Interface(
|
57 |
inference,
|
58 |
inputs=[
|
@@ -64,6 +72,8 @@ iface = gr.Interface(
|
|
64 |
description="A multi-voice TTS system trained with an emphasis on quality",
|
65 |
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>.",
|
66 |
enable_queue=True,
|
|
|
|
|
67 |
)
|
68 |
|
69 |
iface.launch()
|
|
|
30 |
"jlaw",
|
31 |
"lj",
|
32 |
"snakes",
|
|
|
33 |
"William",
|
34 |
]
|
35 |
voice_paths = get_voices()
|
|
|
50 |
print("gen")
|
51 |
torchaudio.save('generated.wav', gen.squeeze(0).cpu(), 24000)
|
52 |
return "generated.wav"
|
53 |
+
|
54 |
+
|
55 |
|
56 |
text = "Joining two modalities results in a surprising increase in generalization! What would happen if we combined them all?"
|
57 |
+
examples = [
|
58 |
+
[
|
59 |
+
text, "angie",
|
60 |
+
text, "emma",
|
61 |
+
"how are you doing this day", "freeman"
|
62 |
+
]
|
63 |
+
|
64 |
iface = gr.Interface(
|
65 |
inference,
|
66 |
inputs=[
|
|
|
72 |
description="A multi-voice TTS system trained with an emphasis on quality",
|
73 |
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>.",
|
74 |
enable_queue=True,
|
75 |
+
examples=examples,
|
76 |
+
cache_examples=True,
|
77 |
)
|
78 |
|
79 |
iface.launch()
|