This project utilizes a deep learning model from Hugging Face's model hub to classify images as either "hot dog" or "not hot dog". The model is deployed as a Flask web application where users can upload images and instantly receive classification results.
Usage:
-
Clone the repository: git clone https://github.com/your-username/hot-dog-recognizer.git cd hot-dog-recognizer
-
Set up your environment: Create and activate a virtual environment (optional but recommended): python -m venv venv . venv/bin/activate # On Windows use
venv\Scripts\activate
-
Install Flask and other dependencies: pip install Flask requests python-dotenv
-
Obtain an API key from Hugging Face and update the .env file: HUGGING_FACE_API_KEY=your_api_key_here HUGGING_FACE_API_URL=https://api-inference.huggingface.co/models/julien-c/hotdog-not-hotdog
-
Run the application: python web.py
-
Play with the AI on your browser.