Skip to content

This is a simple image classifier that receives an image and if it is an animal, provides the name, description, and determines if the animal is dangerous based on Wikipedia info.

License

Notifications You must be signed in to change notification settings

poacosta/animals-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animals Classifier

This is a simple image classifier that receives an image and if it is an animal, provides the name, description, and determines if the animal is dangerous based on Wikipedia info.

Captura de pantalla 2024-09-21 a las 08 43 02-fullpage

Getting Started

Prerequisites

You need to have the following installed on your machine:

How to use it

Running the script

# Clone the repository
git clone

# Change directory
cd animals-classifier

# Install virtualenv (in case you don't have it)
pip install virtualenv

# Create a virtual environment
python -m venv my_virtual_environment

# Activate the virtual environment
source my_virtual_environment/bin/activate

# Install the dependencies
pip install -r requirements.txt

# Run the main script
python main.py

Open the browser and go to the address shown in the terminal: http://127.0.0.1:7860

Important: Make sure to set your OpenAI key before running: export OPENAI_API_KEY-="sk-..."

Resources

  • Images:
    • See some images for testing in the images folder.
    • Taken from Unsplash, under Free License.

Built with

Related Docs

About

This is a simple image classifier that receives an image and if it is an animal, provides the name, description, and determines if the animal is dangerous based on Wikipedia info.

Topics

Resources

License

Stars

Watchers

Forks

Languages