Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ async def transcribe_audio(request: Request):
|
|
40 |
# predicted_ids = model.generate(input_features)
|
41 |
# # Decode token ids to text
|
42 |
# transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|
43 |
-
transcription = pipe(audio_array
|
44 |
# Print the transcription
|
45 |
print(transcription)
|
46 |
print(transcription[0]) # Display the transcriptiontry:
|
|
|
40 |
# predicted_ids = model.generate(input_features)
|
41 |
# # Decode token ids to text
|
42 |
# transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|
43 |
+
transcription = pipe(audio_array)
|
44 |
# Print the transcription
|
45 |
print(transcription)
|
46 |
print(transcription[0]) # Display the transcriptiontry:
|