Spaces:
Running
on
Zero
Running
on
Zero
xieli
commited on
Commit
·
e32c725
1
Parent(s):
346d505
feat: fix log
Browse files
app.py
CHANGED
|
@@ -186,10 +186,10 @@ def transcribe_audio(self, audio_input, current_text):
|
|
| 186 |
try:
|
| 187 |
# Transcribe audio
|
| 188 |
transcribed_text = whisper_asr(audio_input)
|
| 189 |
-
|
| 190 |
return transcribed_text
|
| 191 |
except Exception as e:
|
| 192 |
-
|
| 193 |
return ""
|
| 194 |
|
| 195 |
# Save audio to temporary directory
|
|
|
|
| 186 |
try:
|
| 187 |
# Transcribe audio
|
| 188 |
transcribed_text = whisper_asr(audio_input)
|
| 189 |
+
logger.info(f"Audio transcribed: {transcribed_text}")
|
| 190 |
return transcribed_text
|
| 191 |
except Exception as e:
|
| 192 |
+
logger.error(f"Failed to transcribe audio: {e}")
|
| 193 |
return ""
|
| 194 |
|
| 195 |
# Save audio to temporary directory
|