oza75 commited on
Commit
a9bccc1
·
verified ·
1 Parent(s): 3027a16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def transcribe(audio, task_type, language):
84
 
85
  # Use the pipeline to perform transcription
86
  sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
87
- text = pipe(sample, generate_kwargs={"task": task_type, "num_beams": 10, "repetition_penalty": 0, "language": language})["text"]
88
 
89
  return text
90
 
 
84
 
85
  # Use the pipeline to perform transcription
86
  sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
87
+ text = pipe(sample, generate_kwargs={"task": task_type, "num_beams": 10, "repetition_penalty": 0.01, "language": language})["text"]
88
 
89
  return text
90