Skip to content

Commit

Permalink
Mock bird identification returns uniform confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
eleurent committed Jan 13, 2024
1 parent e4f957b commit 2d30331
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/nature_go/observation/identification.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def format_species(species):
}
}

return {"results": list(map(format_species, bird_species))}
result = {"results": list(map(format_species, bird_species))}
result["results"] = [res | {"score": 1 / len(result["results"])} for res in result["results"]]
return result


def read_exif(image_path):
Expand Down

0 comments on commit 2d30331

Please sign in to comment.