diff --git a/src/smolagents/types.py b/src/smolagents/types.py index 7077daa..b0d4ee1 100644 --- a/src/smolagents/types.py +++ b/src/smolagents/types.py @@ -172,7 +172,7 @@ class AgentAudio(AgentType, str): """ def __init__(self, value, samplerate=16_000): - if not _is_package_available("soundfile") or not is_torch_available: + if not _is_package_available("soundfile") or not is_torch_available(): raise ModuleNotFoundError( "Please install 'audio' extra to use AgentAudio: `pip install 'smolagents[audio]'`" )