From 42c79f21a16f2c91a7f5d26f912ba8904c29e97b Mon Sep 17 00:00:00 2001 From: "Hiroto N." Date: Tue, 28 Jan 2025 17:50:59 +0900 Subject: [PATCH] fix is_torch_available function call (#379) --- src/smolagents/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]'`" )