mr2along commited on
Commit
5f70330
1 Parent(s): 22076da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -52,8 +52,7 @@ def create_pronunciation_audio(word):
52
  main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
53
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
54
  tts.save(audio_file_path)
55
- print(f"audio/{word}: {main_url}{filePath}/{audio_file_path}")
56
- return f"{main_url}{filePath}/{audio_file_path}" # Return the file path of the saved audio
57
 
58
  # Step 3: Compare the transcribed text with the input paragraph
59
  def compare_texts(reference_text, transcribed_text):
 
52
  main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
53
  audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
54
  tts.save(audio_file_path)
55
+ return audio_file_path # Return the file path of the saved audio
 
56
 
57
  # Step 3: Compare the transcribed text with the input paragraph
58
  def compare_texts(reference_text, transcribed_text):