Skip to content

Commit 71fc538

Browse files
committed
PyThaiASR v1.1.2
- remove replace space
1 parent 35c953a commit 71fc538

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythaiasr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def read(*paths):
2727

2828
setup(
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',

0 commit comments

Comments
 (0)