Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Commit
·
d85e9cd
1
Parent(s):
cce1e9f
Update utils.py
Browse files
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.
|
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)))
|