File "/usr/local/lib/python3.11/site-packages/resemblyzer/audio.py", line 91, in trim_long_silences
csm-myfastapi-1 | audio_mask = np.round(audio_mask).astype(np.bool)
csm-myfastapi-1 | ^^^^^^^
csm-myfastapi-1 | File "/usr/local/lib/python3.11/site-packages/numpy/_init.py", line 305, in _getattr
csm-myfastapi-1 | raise AttributeError(_formerattrs[attr])
csm-myfastapi-1 | AttributeError: module 'numpy' has no attribute 'bool'.
csm-myfastapi-1 | np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
csm-myfastapi-1 |
File "/usr/local/lib/python3.11/site-packages/resemblyzer/audio.py", line 91, in trim_long_silences csm-myfastapi-1 | audio_mask = np.round(audio_mask).astype(np.bool) csm-myfastapi-1 | ^^^^^^^ csm-myfastapi-1 | File "/usr/local/lib/python3.11/site-packages/numpy/_init.py", line 305, in _getattr csm-myfastapi-1 | raise AttributeError(_formerattrs[attr]) csm-myfastapi-1 | AttributeError: module 'numpy' has no attribute 'bool'. csm-myfastapi-1 |
np.bool
was a deprecated alias for the builtinbool
. To avoid this error in existing code, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_
here. csm-myfastapi-1 |