mr2along commited on
Commit
145903a
1 Parent(s): 37a3491

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ def create_pronunciation_audio(word):
75
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
76
  tts.save(audio_file_path)
77
  word_audio=upfilepath(audio_file_path)
78
- print(f"Lỗi: {word_audio}")
79
- return f"{main_url}/{word_audio}" # Return the file path of the saved audio
80
 
81
  # Step 3: Compare the transcribed text with the input paragraph
82
  def compare_texts(reference_text, transcribed_text):
 
75
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
76
  tts.save(audio_file_path)
77
  word_audio=upfilepath(audio_file_path)
78
+ #print(f"Lỗi: {word_audio}")
79
+ return f"{main_url}{word_audio}" # Return the file path of the saved audio
80
 
81
  # Step 3: Compare the transcribed text with the input paragraph
82
  def compare_texts(reference_text, transcribed_text):