Update server.py

This commit is contained in:
ehpersonal38
2023-01-15 13:58:57 -05:00
parent 28ac9e172c
commit 1dcd4b4877
+2 -2
View File
@@ -141,7 +141,7 @@ def explore(lat, lon, week):
l_filter = predictFilter(lat, lon, week)
# Apply threshold
l_filter = np.where(l_filter >= sf_thresh, l_filter, 0)
l_filter = np.where(l_filter >= float(sf_thresh), l_filter, 0)
# Zip with labels
l_filter = list(zip(l_filter, CLASSES))
@@ -155,7 +155,7 @@ def predictSpeciesList(lat, lon, week):
l_filter = explore(lat, lon, week)
for s in l_filter:
if s[0] >= sf_thresh:
if s[0] >= float(sf_thresh):
PREDICTED_SPECIES_LIST.append(s[1])
def loadCustomSpeciesList(path):