diff --git a/src/transformers/models/encodec/modeling_encodec.py b/src/transformers/models/encodec/modeling_encodec.py index faf053c5dc942b..42f56056eb7cef 100644 --- a/src/transformers/models/encodec/modeling_encodec.py +++ b/src/transformers/models/encodec/modeling_encodec.py @@ -36,6 +36,7 @@ ) from .configuration_encodec import EncodecConfig, EncodecDiscriminatorConfig + if is_torchaudio_available(): import torchaudio