KingNish commited on
Commit
baba70b
·
verified ·
1 Parent(s): 6a63fdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def transcribe(inputs, previous_transcription):
28
  sample_rate, audio_data = inputs
29
 
30
  # Save the Audio Data to the Temporary File
31
- scipy.io.wavfile.write(filepath, sample_rate, audio_data)
32
 
33
  # Transcribe the Audio
34
  transcription = pipe(filepath, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=False)["text"]
 
28
  sample_rate, audio_data = inputs
29
 
30
  # Save the Audio Data to the Temporary File
31
+ scipy.io.wavfile.write(filename, sample_rate, audio_data)
32
 
33
  # Transcribe the Audio
34
  transcription = pipe(filepath, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=False)["text"]