mr2along commited on
Commit
fff7772
1 Parent(s): 061b18a

Update app.py

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