use helper

This commit is contained in:
frederik
2025-10-30 17:48:11 +01:00
committed by Nachtzuster
parent 92b3dbe95f
commit 0d28d5e8d0
+3 -7
View File
@@ -1,12 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source /etc/birdnet/birdnet.conf source /etc/birdnet/birdnet.conf
if [ "$MODEL" == "BirdNET_GLOBAL_6K_V2.4_Model_FP16" ]; then cd /home/$BIRDNET_USER/BirdNET-Pi/scripts
BASEDIR=labels_nm
else
BASEDIR=labels_l18n
fi
label_file_name="labels_${DATABASE_LANG}.txt" python3 -c 'from utils.helpers import set_label_file; set_label_file()'
[ -f "$HOME/BirdNET-Pi/model/${BASEDIR}/${label_file_name}" ] && ln -sf ${BASEDIR}/${label_file_name} $HOME/BirdNET-Pi/model/labels.txt cd -