osanseviero
commited on
Commit
•
46d31bb
1
Parent(s):
5694969
Update pipeline.py
Browse files- pipeline.py +1 -0
pipeline.py
CHANGED
@@ -27,6 +27,7 @@ class PreTrainedPipeline():
|
|
27 |
alphabet = Alphabet.build_alphabet(vocab_list, ctc_token_idx=0)
|
28 |
|
29 |
self.decoder = BeamSearchDecoderCTC(alphabet)
|
|
|
30 |
|
31 |
|
32 |
def __call__(self, inputs)-> Dict[str, str]:
|
|
|
27 |
alphabet = Alphabet.build_alphabet(vocab_list, ctc_token_idx=0)
|
28 |
|
29 |
self.decoder = BeamSearchDecoderCTC(alphabet)
|
30 |
+
self.sampling_rate = 16000
|
31 |
|
32 |
|
33 |
def __call__(self, inputs)-> Dict[str, str]:
|