Spaces:
Sleeping
Sleeping
ASG Models
commited on
Commit
•
bf2199e
1
Parent(s):
a4012f3
Update app.py
Browse files
app.py
CHANGED
@@ -105,12 +105,12 @@ def clean_text(text):
|
|
105 |
|
106 |
def text_to_speech(text):
|
107 |
|
108 |
-
response =
|
109 |
pad_text=''
|
110 |
k=0
|
111 |
for chunk in response:
|
112 |
|
113 |
-
pad_text+=str(clean_text(chunk
|
114 |
|
115 |
if pad_text!='' and len(pad_text)>10:
|
116 |
out=pad_text
|
@@ -126,6 +126,12 @@ def dash(text):
|
|
126 |
response=get_answer_ai(text)
|
127 |
for chunk in response:
|
128 |
yield chunk.text
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
# return textai
|
130 |
|
131 |
|
|
|
105 |
|
106 |
def text_to_speech(text):
|
107 |
|
108 |
+
response = dash2(text)
|
109 |
pad_text=''
|
110 |
k=0
|
111 |
for chunk in response:
|
112 |
|
113 |
+
pad_text+=str(clean_text(chunk))
|
114 |
|
115 |
if pad_text!='' and len(pad_text)>10:
|
116 |
out=pad_text
|
|
|
126 |
response=get_answer_ai(text)
|
127 |
for chunk in response:
|
128 |
yield chunk.text
|
129 |
+
|
130 |
+
def dash2(text):
|
131 |
+
|
132 |
+
response=get_answer_ai(text)
|
133 |
+
for chunk in response:
|
134 |
+
yield chunk.text
|
135 |
# return textai
|
136 |
|
137 |
|