oza75 commited on
Commit
934fa9b
·
verified ·
1 Parent(s): 9b1813b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def transcribe(audio, task_type):
75
 
76
  # Use the pipeline to perform transcription
77
  sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
78
- text = pipe(sample, generate_kwargs={"task": task_type})["text"]
79
 
80
  return text
81
 
 
75
 
76
  # Use the pipeline to perform transcription
77
  sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
78
+ text = pipe(sample, generate_kwargs={"task": task_type, "language": language})["text"]
79
 
80
  return text
81