WajeehAzeemX commited on
Commit
273575f
·
verified ·
1 Parent(s): 7ea0248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,generate_kwargs = {"task":"transcribe", "language":"<|ar|>"})
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: