Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,6 +106,8 @@ async def greet(product,description):
|
|
106 |
if len(a_list[0]) > 1024:
|
107 |
# truncate the text
|
108 |
text_str = a_list[0][:1024]
|
|
|
|
|
109 |
samples = tts.synthesize(text_str, speakers[-1])
|
110 |
yield gr.Audio.update(value=(tts.get_sampling_rate(), samples))
|
111 |
else:
|
|
|
106 |
if len(a_list[0]) > 1024:
|
107 |
# truncate the text
|
108 |
text_str = a_list[0][:1024]
|
109 |
+
else:
|
110 |
+
text_str = a_list[0]
|
111 |
samples = tts.synthesize(text_str, speakers[-1])
|
112 |
yield gr.Audio.update(value=(tts.get_sampling_rate(), samples))
|
113 |
else:
|