fix is_torch_available function call (#379)

This commit is contained in:
Hiroto N. 2025-01-28 17:50:59 +09:00 committed by GitHub
parent f26d77ca2f
commit 42c79f21a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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]'`"
)