File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def __call__(self, file: str) -> str:
5353 logits = self .model (input_dict .input_values ).logits
5454 pred_ids = torch .argmax (logits , dim = - 1 )[0 ]
5555 if self .model_name == "airesearch/wav2vec2-large-xlsr-53-th" :
56- txt = self .processor .decode (pred_ids ). replace ( ' ' , '' )
56+ txt = self .processor .decode (pred_ids )
5757 else :
5858 txt = self .processor .batch_decode (logits .detach ().numpy ()).text [0 ]
5959 return txt
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def read(*paths):
2727
2828setup (
2929 name = 'pythaiasr' ,
30- version = '1.1.1 ' ,
30+ version = '1.1.2 ' ,
3131 packages = ['pythaiasr' ],
3232 url = 'https://github.com/pythainlp/pythaiasr' ,
3333 license = 'Apache Software License 2.0' ,
You can’t perform that action at this time.
0 commit comments