amir22010 commited on
Commit
2a959b4
·
verified ·
1 Parent(s): d65efa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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: