broadfield commited on
Commit
fcb3120
·
verified ·
1 Parent(s): b7ceb98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- yield from pp.stream_tts(inp[-1][-1].strip("</s>"),names,length,noise,width,sen_pause)
 
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")