Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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"]
|