Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,8 @@ def load_mod(model):
|
|
57 |
|
58 |
def tts(inp,names,length,noise,width,sen_pause):
|
59 |
#print(inp)
|
60 |
-
print(inp[-1][
|
61 |
-
txt = inp[-1][
|
62 |
#decoded_text = codecs.decode(txt, "unicode_escape")
|
63 |
yield from pp.stream_tts([txt],names,length,noise,width,sen_pause)
|
64 |
|
|
|
57 |
|
58 |
def tts(inp,names,length,noise,width,sen_pause):
|
59 |
#print(inp)
|
60 |
+
print(inp[-1][1])
|
61 |
+
txt = inp[-1][1].strip("</s>")
|
62 |
#decoded_text = codecs.decode(txt, "unicode_escape")
|
63 |
yield from pp.stream_tts([txt],names,length,noise,width,sen_pause)
|
64 |
|