Skip to content

Commit b986189

Browse files
committed
Apply isort and black reformatting
Signed-off-by: akoumpa <[email protected]>
1 parent b392165 commit b986189

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nemo/collections/common/tokenizers/huggingface/auto_tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def text_to_ids(self, text):
313313
return ids
314314

315315
def apply_chat_template(self, *args, **kwargs):
316-
""" Appies chat template and tokenizes results """
316+
"""Appies chat template and tokenizes results"""
317317
return self.tokenizer.apply_chat_template(*args, **kwargs)
318318

319319
def ids_to_text(self, ids, remove_special_tokens=True):

nemo/collections/common/tokenizers/tokenizer_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def add_special_tokens(self, special_tokens: List[str]):
5252
raise NotImplementedError("To be implemented")
5353

5454
def apply_chat_template(self, *args, **kwargs):
55-
""" Appies chat template and tokenizes results """
55+
"""Appies chat template and tokenizes results"""
5656
raise NotImplementedError("To be implemented")
5757

5858
@property

0 commit comments

Comments
 (0)