Serhiy Stetskovych
commited on
Commit
•
1828e31
1
Parent(s):
debc208
Fix dep
Browse files
app.py
CHANGED
@@ -26,13 +26,13 @@ model.eval()
|
|
26 |
|
27 |
|
28 |
description = f'''
|
29 |
-
|
30 |
'''
|
31 |
|
32 |
def synthesise(text, voice):
|
33 |
output = model.synthesize(text, voice = voice, steps = 8, alpha = 0.1)
|
34 |
waveform = output['wav']
|
35 |
-
return (24000, waveform.numpy())
|
36 |
|
37 |
if __name__ == "__main__":
|
38 |
i = gr.Interface(
|
@@ -53,7 +53,7 @@ if __name__ == "__main__":
|
|
53 |
],
|
54 |
allow_flagging ='never',
|
55 |
cache_examples=True,
|
56 |
-
title='',
|
57 |
examples=[ ],
|
58 |
)
|
59 |
i.queue(max_size=20, default_concurrency_limit=4)
|
|
|
26 |
|
27 |
|
28 |
description = f'''
|
29 |
+
|
30 |
'''
|
31 |
|
32 |
def synthesise(text, voice):
|
33 |
output = model.synthesize(text, voice = voice, steps = 8, alpha = 0.1)
|
34 |
waveform = output['wav']
|
35 |
+
return (24000, waveform.cpy().squeeze().numpy())
|
36 |
|
37 |
if __name__ == "__main__":
|
38 |
i = gr.Interface(
|
|
|
53 |
],
|
54 |
allow_flagging ='never',
|
55 |
cache_examples=True,
|
56 |
+
title='Voicebox demo',
|
57 |
examples=[ ],
|
58 |
)
|
59 |
i.queue(max_size=20, default_concurrency_limit=4)
|