DarwinAnim8or commited on
Commit
04c3c08
·
1 Parent(s): e44568f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ model.config.forced_decoder_ids = None
11
  # Define a function that takes an audio input and returns a transcription
12
  def transcribe(audio):
13
  # Use the processor to transcribe the audio
14
- transcription = processor.transcribe(audio)
15
 
16
  # Extract the confidence score and the duration from the transcription
17
  confidence = transcription.confidence
 
11
  # Define a function that takes an audio input and returns a transcription
12
  def transcribe(audio):
13
  # Use the processor to transcribe the audio
14
+ transcription = processor.transcribe(audio, 48)
15
 
16
  # Extract the confidence score and the duration from the transcription
17
  confidence = transcription.confidence