Spaces:
Runtime error
Runtime error
Dr. Richard Zinck
commited on
Commit
•
b18b061
1
Parent(s):
272c82a
Reset to 144kHz version
Browse files- README.md +1 -1
- bat_gui.py +6 -6
README.md
CHANGED
@@ -5,7 +5,7 @@ colorFrom: pink
|
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.41.0
|
8 |
-
app_file: ""
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-4.0
|
11 |
---
|
|
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.41.0
|
8 |
+
app_file: "bat_gui.py"
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-4.0
|
11 |
---
|
bat_gui.py
CHANGED
@@ -130,8 +130,8 @@ def runAnalysis(
|
|
130 |
locale = "de"
|
131 |
|
132 |
elif species_list_choice == "EU":
|
133 |
-
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-
|
134 |
-
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-
|
135 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
136 |
cfg.LATITUDE = -1
|
137 |
cfg.LONGITUDE = -1
|
@@ -160,8 +160,8 @@ def runAnalysis(
|
|
160 |
locale = "en"
|
161 |
|
162 |
elif species_list_choice == "USA":
|
163 |
-
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-USA-
|
164 |
-
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-USA-
|
165 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
166 |
cfg.LATITUDE = -1
|
167 |
cfg.LONGITUDE = -1
|
@@ -170,8 +170,8 @@ def runAnalysis(
|
|
170 |
locale = "en"
|
171 |
|
172 |
else:
|
173 |
-
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-
|
174 |
-
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-
|
175 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
176 |
cfg.LATITUDE = -1
|
177 |
cfg.LONGITUDE = -1
|
|
|
130 |
locale = "de"
|
131 |
|
132 |
elif species_list_choice == "EU":
|
133 |
+
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz.tflite"
|
134 |
+
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz_Labels.txt"
|
135 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
136 |
cfg.LATITUDE = -1
|
137 |
cfg.LONGITUDE = -1
|
|
|
160 |
locale = "en"
|
161 |
|
162 |
elif species_list_choice == "USA":
|
163 |
+
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-USA-144kHz.tflite"
|
164 |
+
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-USA-144kHz_Labels.txt"
|
165 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
166 |
cfg.LATITUDE = -1
|
167 |
cfg.LONGITUDE = -1
|
|
|
170 |
locale = "en"
|
171 |
|
172 |
else:
|
173 |
+
cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz.tflite"
|
174 |
+
cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz_Labels.txt"
|
175 |
cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
|
176 |
cfg.LATITUDE = -1
|
177 |
cfg.LONGITUDE = -1
|