AlbertoFH98 commited on
Commit
d85e9cd
·
1 Parent(s): cce1e9f

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -89,7 +89,7 @@ class TogetherLLM(LLM):
89
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
90
  for resultado_aux in resultado_alpha_num:
91
  if resultado_aux in transcription_cleaned or transcription_cleaned in resultado_aux:
92
- init_transcription = re.findall(regex_init_transcription, transcription)[0]
93
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
94
  # -- Merge with original transcription
95
  new_transcription = '\n\n'.join(list(set(new_transcription)))
 
89
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
90
  for resultado_aux in resultado_alpha_num:
91
  if resultado_aux in transcription_cleaned or transcription_cleaned in resultado_aux:
92
+ init_transcription = re.search(regex_init_transcription, transcription).group(0)
93
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
94
  # -- Merge with original transcription
95
  new_transcription = '\n\n'.join(list(set(new_transcription)))