Spaces:
Running
Running
martin
commited on
Commit
·
f69f7c1
1
Parent(s):
7562f2a
modify name
Browse files- tokenizer.py +1 -1
tokenizer.py
CHANGED
@@ -22,7 +22,7 @@ class StepAudioTokenizer:
|
|
22 |
encoder_path,
|
23 |
"dengcunqin/speech_paraformer-large_asr_nat-zh-cantonese-en-16k-vocab8501-online",
|
24 |
)
|
25 |
-
kms_path = os.path.join(encoder_path, "
|
26 |
cosy_tokenizer_path = os.path.join(encoder_path, "speech_tokenizer_v1.onnx")
|
27 |
self.funasr_model = AutoModel(model=funasr_model_path, model_revision="master")
|
28 |
self.kms = torch.tensor(np.load(kms_path))
|
|
|
22 |
encoder_path,
|
23 |
"dengcunqin/speech_paraformer-large_asr_nat-zh-cantonese-en-16k-vocab8501-online",
|
24 |
)
|
25 |
+
kms_path = os.path.join(encoder_path, "linguistic_tokenizer.npy")
|
26 |
cosy_tokenizer_path = os.path.join(encoder_path, "speech_tokenizer_v1.onnx")
|
27 |
self.funasr_model = AutoModel(model=funasr_model_path, model_revision="master")
|
28 |
self.kms = torch.tensor(np.load(kms_path))
|