fix is_torch_available function call (#379)
This commit is contained in:
parent
f26d77ca2f
commit
42c79f21a1
|
@ -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]'`"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue