Bioacoustic Index Calculation in Python

I’m trying to calculate the bioacoustic index from scikit-maad library using Python and I get this error:

AttributeError: ‘int’ object has no attribute ‘argmin’

here is my code generated with Cursor IA:

import os
from maad import sound, features
import soundfile as sf

Ruta de la carpeta que contiene los archivos .wav

folder_path = ‘folder/path’

Lista para guardar los resultados

results =

Iterar sobre cada archivo en la carpeta

for filename in os.listdir(folder_path):
if filename.endswith(‘.wav’):
# Construir la ruta completa al archivo
file_path = os.path.join(folder_path, filename)

    # Cargar el archivo de audio
    s, fs = sf.read(file_path)
           
    # Calcular el índice bioacústico
    bioacoustic_index = features.bioacoustics_index(s, fs)
    
    # Guardar el resultado
    results.append((filename, bioacoustic_index))

Imprimir los resultados

for filename, bi in results:
print(f"Archivo: {filename}, Índice Bioacústico: {bi}")

if anyone can help me with this I will be very much appreciated!

cheers,

Martin.