mr2along commited on
Commit
5b227d6
1 Parent(s): 11a3c0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def create_pronunciation_audio(word):
84
  main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
85
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
86
  tts.save(audio_file_path)
87
- print(f"audio/{word}: {(os.path.abspath(audio_file_path))}")
88
  return f"{main_url}{filePath}/{audio_file_path}" # Return the file path of the saved audio
89
 
90
  # Step 3: Compare the transcribed text with the input paragraph
 
84
  main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
85
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
86
  tts.save(audio_file_path)
87
+ print(f"audio/{word}: {main_url}{filePath}/{audio_file_path}")
88
  return f"{main_url}{filePath}/{audio_file_path}" # Return the file path of the saved audio
89
 
90
  # Step 3: Compare the transcribed text with the input paragraph