Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,8 @@ def compare_texts(reference_text, transcribed_text):
|
|
81 |
html_output += f'<span style="color: red;">{word}</span> '
|
82 |
# Create pronunciation audio for the incorrect word
|
83 |
audio_file_path = create_pronunciation_audio(word)
|
84 |
-
incorrect_words_audios.append((word, audio_file_path))
|
|
|
85 |
except IndexError:
|
86 |
html_output += f'<span style="color: red;">{word}</span> ' # Words in reference that were not transcribed
|
87 |
|
|
|
81 |
html_output += f'<span style="color: red;">{word}</span> '
|
82 |
# Create pronunciation audio for the incorrect word
|
83 |
audio_file_path = create_pronunciation_audio(word)
|
84 |
+
#incorrect_words_audios.append((word, audio_file_path))
|
85 |
+
incorrect_words_audios.append( audio_file_path)
|
86 |
except IndexError:
|
87 |
html_output += f'<span style="color: red;">{word}</span> ' # Words in reference that were not transcribed
|
88 |
|