Skip to content

Commit

Permalink
Mod: Update internal typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Nov 21, 2023
1 parent 9584efb commit 1b772b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aac_datasets/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ def _load_auto_value(self, column: str, idx: int) -> Any:

def _load_audio(self, idx: int) -> Tensor:
fpath = self.at(idx, "fpath")
audio, sr = torchaudio.load(fpath) # type: ignore
audio_and_sr: Tuple[Tensor, int] = torchaudio.load(fpath) # type: ignore
audio, sr = audio_and_sr

# Sanity check
if audio.nelement() == 0:
Expand Down

0 comments on commit 1b772b5

Please sign in to comment.