Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def transcribe(inputs, previous_transcription):
|
|
31 |
scipy.io.wavfile.write(filename, sample_rate, audio_data)
|
32 |
|
33 |
# Transcribe the Audio
|
34 |
-
transcription = pipe(
|
35 |
previous_transcription += transcription
|
36 |
|
37 |
return previous_transcription
|
|
|
31 |
scipy.io.wavfile.write(filename, sample_rate, audio_data)
|
32 |
|
33 |
# Transcribe the Audio
|
34 |
+
transcription = pipe(filename, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=False)["text"]
|
35 |
previous_transcription += transcription
|
36 |
|
37 |
return previous_transcription
|