Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,9 +51,8 @@ def tts(inp,names,length,noise,width,sen_pause):
|
|
51 |
print(inp)
|
52 |
print(inp[-1][-1])
|
53 |
txt = inp[-1][-1].strip("</s>")
|
54 |
-
decoded_text = codecs.decode(txt, "unicode_escape")
|
55 |
-
|
56 |
-
yield from pp.stream_tts(decode_text,names,length,noise,width,sen_pause)
|
57 |
|
58 |
with gr.Blocks() as iface:
|
59 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
|
|
|
51 |
print(inp)
|
52 |
print(inp[-1][-1])
|
53 |
txt = inp[-1][-1].strip("</s>")
|
54 |
+
#decoded_text = codecs.decode(txt, "unicode_escape")
|
55 |
+
yield from pp.stream_tts(txt,names,length,noise,width,sen_pause)
|
|
|
56 |
|
57 |
with gr.Blocks() as iface:
|
58 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
|