Skip to content

Commit

Permalink
fixed model change when using custom locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Feb 29, 2024
1 parent ae354a7 commit 641950c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function loadDB(path) {
DEBUG && console.log("Loading db " + path)
let modelLabels;
if (STATE.model === 'birdnet'){
const labelFile = `labels/V2.4/BirdNET_GLOBAL_6K_V2.4_Labels_${STATE.locale}.txt`;
const labelFile = `labels/V2.4/BirdNET_GLOBAL_6K_V2.4_Labels_en.txt`;
await fetch(labelFile).then(response => {
if (! response.ok) throw new Error('Network response was not ok');
return response.text();
Expand Down

0 comments on commit 641950c

Please sign in to comment.