xieli commited on
Commit
e32c725
·
1 Parent(s): 346d505

feat: fix log

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- self.logger.info(f"Audio transcribed: {transcribed_text}")
190
  return transcribed_text
191
  except Exception as e:
192
- self.logger.error(f"Failed to transcribe audio: {e}")
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