Skip to content

Commit

Permalink
bugfix (NVIDIA#6122)
Browse files Browse the repository at this point in the history
Signed-off-by: Dima Rekesh <[email protected]>
Co-authored-by: Dima Rekesh <[email protected]>
  • Loading branch information
2 people authored and titu1994 committed Mar 24, 2023
1 parent 54a7ad0 commit 3b645cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/asr/data/audio_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ def __init__(self, tokenizer):
self._tokenizer = tokenizer

def __call__(self, *args):
if isinstance(args[0], Iterable) and self.is_aggregate:
if isinstance(args[0], List) and self.is_aggregate:
t = []
for span in args[0]:
t.extend(self._tokenizer.text_to_ids(span['str'], span['lang']))
Expand Down

0 comments on commit 3b645cd

Please sign in to comment.