Spaces:
Sleeping
Sleeping
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -207,11 +207,13 @@ def text_to_speech(text):
|
|
207 |
out=pad_text
|
208 |
pad_text=''
|
209 |
k+=1
|
210 |
-
|
211 |
-
|
|
|
212 |
if pad_text!='':
|
213 |
-
|
214 |
-
|
|
|
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)
|