thak123 commited on
Commit
4e92421
·
verified ·
1 Parent(s): 18b526a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,14 +30,14 @@ def transcribe_speech(filepath):
30
  # torchaudio.save(filepath, waveform_16k, 16000)
31
  output = pipe(
32
  filepath,
33
- max_new_tokens=256,
34
  generate_kwargs={
35
  "task": "transcribe",
36
  # "language": "konkani",
37
  }, # update with the language you've fine-tuned on
38
  chunk_length_s=30,
39
  batch_size=8,
40
- sampling_rate=16000,
41
  # padding=True
42
  )
43
  return output["text"]
 
30
  # torchaudio.save(filepath, waveform_16k, 16000)
31
  output = pipe(
32
  filepath,
33
+ # max_new_tokens=256,
34
  generate_kwargs={
35
  "task": "transcribe",
36
  # "language": "konkani",
37
  }, # update with the language you've fine-tuned on
38
  chunk_length_s=30,
39
  batch_size=8,
40
+ # sampling_rate=16000,
41
  # padding=True
42
  )
43
  return output["text"]