Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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}
|
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):
|