This demo uses the AI for Earth Species Classification API, which identifies over 5,000 plant and animal species. Visit the [API home page](https://www.microsoft.com/en-us/ai/ai-for-earth-apis) for more information or to request an API key. The code used to train our model is available [here](https://github.com/Microsoft/SpeciesClassification).
- Update`SUBSCRIPTION_KEY` with your product / API key. Visit the [API home page](https://www.microsoft.com/en-us/ai/ai-for-earth-apis) for more information on how to request an API key.
The directory structure for the sample images should be as follows `animal_name > image.ext` as shown in the example below. A minimum of 8 valid images (jpg or png) is required for the demo to work.
- Creates a csv index file called `demo/static/data/updated_animal_list.csv`, which contains the file paths and corresponding animal names (extracted from the directory names).
- Creates a thumbnails folder from the provided images. Thumbnails are resized images from the `animals` folder; these are the images
that are displayed on the site. While predicting, the site will look up the corresponding image in the `animals` folder.