ASG Models commited on
Commit
d86b643
·
verified ·
1 Parent(s): 5f17314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -207,11 +207,13 @@ def text_to_speech(text):
207
  out=pad_text
208
  pad_text=''
209
  k+=1
210
- for stream_wav in generate_audio(out):
211
- yield stream_wav
 
212
  if pad_text!='':
213
- for stream_wav in generate_audio(pad_text):
214
- yield stream_wav
 
215
  def dash(text):
216
 
217
  response=get_answer_ai(text)
 
207
  out=pad_text
208
  pad_text=''
209
  k+=1
210
+ yield modelspeech(out)
211
+ # for stream_wav in generate_audio(out):
212
+ # yield stream_wav
213
  if pad_text!='':
214
+ yield modelspeech(pad_text)
215
+ # for stream_wav in generate_audio(pad_text):
216
+ # yield stream_wav
217
  def dash(text):
218
 
219
  response=get_answer_ai(text)