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