Mahiruoshi commited on
Commit
853d005
1 Parent(s): c434eb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -119,7 +119,13 @@ def extrac(text):
119
  return final_list
120
  def infer(language,text,speaker_id, n_scale= 0.667,n_scale_w = 0.8, l_scale = 1 ):
121
  speaker_id = int(selection(speaker_id))
122
- final_list = extrac(text)
 
 
 
 
 
 
123
  audio_fin = []
124
  c = 0
125
  for sentence in final_list:
 
119
  return final_list
120
  def infer(language,text,speaker_id, n_scale= 0.667,n_scale_w = 0.8, l_scale = 1 ):
121
  speaker_id = int(selection(speaker_id))
122
+ a = ['【','[','(','(','']
123
+ b = ['】',']',')',')']
124
+ for i in a:
125
+ text = textt.replace(i,'<')
126
+ for i in b:
127
+ text = textt.replace(i,'>')
128
+ final_list = extrac(text.replace('“','').replace('”','').replace(''))
129
  audio_fin = []
130
  c = 0
131
  for sentence in final_list: