unijoh commited on
Commit
0fef023
1 Parent(s): 11fd03f

Update asr.py

Browse files
Files changed (1) hide show
  1. asr.py +1 -1
asr.py CHANGED
@@ -33,7 +33,7 @@ def transcribe(audio):
33
 
34
  # Process the audio with the pipeline
35
  try:
36
- transcription = pipe(audio_samples, sampling_rate=ASR_SAMPLING_RATE)["text"]
37
  except Exception as e:
38
  logging.error(f"Error during transcription with pipeline: {e}")
39
  return f"ERROR: Transcription failed - {e}"
 
33
 
34
  # Process the audio with the pipeline
35
  try:
36
+ transcription = pipe(audio_samples)["text"]
37
  except Exception as e:
38
  logging.error(f"Error during transcription with pipeline: {e}")
39
  return f"ERROR: Transcription failed - {e}"