Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def upfilepath():
|
|
| 43 |
else:
|
| 44 |
print(f"Lỗi: {response.status_code}")
|
| 45 |
print(response.text) # In thông báo lỗi từ server
|
| 46 |
-
|
| 47 |
# Step 1: Transcribe the audio file
|
| 48 |
def transcribe_audio(audio):
|
| 49 |
if audio is None:
|
|
@@ -144,7 +144,7 @@ def text_to_speech(paragraph):
|
|
| 144 |
# Gradio Interface Function
|
| 145 |
def gradio_function(paragraph, audio):
|
| 146 |
# Transcribe the audio
|
| 147 |
-
|
| 148 |
transcribed_text = transcribe_audio(audio)
|
| 149 |
|
| 150 |
# Compare the original paragraph with the transcribed text
|
|
|
|
| 43 |
else:
|
| 44 |
print(f"Lỗi: {response.status_code}")
|
| 45 |
print(response.text) # In thông báo lỗi từ server
|
| 46 |
+
|
| 47 |
# Step 1: Transcribe the audio file
|
| 48 |
def transcribe_audio(audio):
|
| 49 |
if audio is None:
|
|
|
|
| 144 |
# Gradio Interface Function
|
| 145 |
def gradio_function(paragraph, audio):
|
| 146 |
# Transcribe the audio
|
| 147 |
+
filePath=upfilepath()
|
| 148 |
transcribed_text = transcribe_audio(audio)
|
| 149 |
|
| 150 |
# Compare the original paragraph with the transcribed text
|