Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
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"]
|