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]>
Signed-off-by: hsiehjackson <[email protected]>
  • Loading branch information
2 people authored and hsiehjackson committed Jun 2, 2023
1 parent f97fd9f commit 4657e0b
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 4657e0b

Please sign in to comment.