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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import torchaudio
10
  pipe = pipeline(model="thak123/gom-stt-v3", #"thak123/whisper-small-LDC-V1", #"thak123/whisper-small-gom",
11
  task="automatic-speech-recognition",
12
  tokenizer= tokenizer,
13
- sampling_rate=16000,
14
  ) # change to "your-username/the-name-you-picked"
15
 
16
  # pipe.model.config.forced_decoder_ids = (
@@ -37,6 +37,7 @@ def transcribe_speech(filepath):
37
  }, # update with the language you've fine-tuned on
38
  chunk_length_s=30,
39
  batch_size=8,
 
40
  # padding=True
41
  )
42
  return output["text"]
 
10
  pipe = pipeline(model="thak123/gom-stt-v3", #"thak123/whisper-small-LDC-V1", #"thak123/whisper-small-gom",
11
  task="automatic-speech-recognition",
12
  tokenizer= tokenizer,
13
+
14
  ) # change to "your-username/the-name-you-picked"
15
 
16
  # pipe.model.config.forced_decoder_ids = (
 
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"]