This project is a FastAPI application for predicting digits from images using a Keras model. It also includes Prometheus for monitoring API usage.
-
Clone the repository:
git clone https://github.com/kiran-kumar-n-11/Prometheus-FastAPI.git
-
Navigate to the project directory:
cd your_repository
-
Install the required packages:
pip install -r requirements.txt
-
Start the FastAPI application and Prometheus using Docker Compose:
docker-compose up
-
Access the FastAPI application at
http://localhost:8000
and the Prometheus dashboard athttp://localhost:9090
. -
Upload an image of a digit to the FastAPI application to get the predicted digit.
DigitPredictor.h5
: Keras model for digit prediction.app.py
: FastAPI code for predicting digits using images.requirements.txt
: List of Python dependencies.Dockerfile
: Docker configuration file.docker-compose.yml
: Docker Compose configuration file.prometheus/prometheus.yml
: Prometheus configuration file.