This is a web application that allows users to upload images and get predictions using a TensorFlow Lite model.
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install the required packages:
pip install -r requirements.txt-
Make sure your model file
final_densenet_finetuned_model.tfliteis in the root directory. -
Start the Flask application:
python app.py- Open your web browser and navigate to:
http://localhost:5000
- Drag and drop image upload
- Image preview
- Real-time predictions
- Support for PNG, JPG, and JPEG formats
- Modern and responsive UI
- Maximum file size: 16MB
- Supported image formats: PNG, JPG, JPEG
- Images are automatically resized to 224x224 pixels before processing
- Uploaded images are temporarily stored and then deleted after processing