Welcome to the Machine Learning API repository built with FastAPI! This repository contains code to deploy machine learning models as APIs using the FastAPI framework, a modern and high-performance web framework for building APIs with Python.
Check out the live demo of the API: API Demo
To deploy this API on Google Cloud Platform, Google Cloud Run service is used to achieve scalable and reliable hosting.
This API serves as a bridge between machine learning models and applications, allowing users to interact with models through simple HTTP requests. Whether you're deploying models for predictions, classification, object detection, or any other task, this API provides a scalable and efficient solution.
Please note that the samples provided in this repository specifically focus on object detection tasks. The API supports the integration of object detection models, enabling real-time analysis of images.
- FastAPI Integration: Utilizes FastAPI framework for building robust and high-performance APIs.
- Model Deployment: Deploy machine learning models seamlessly as APIs.
- Swagger Documentation: Automatically generates interactive API documentation with Swagger UI for easy exploration.
- Input Validation: Ensures data integrity with input validation.
- Clone this repository:
git clone https://github.com/dinosptr/facemask-api.git
- Navigate to Cloned Directory:
cd facemask-api
- Install dependencies:
pip install -r requirements.txt
- Run the FastAPI server:
python main.py
- Access the API documentation: Open your web browser and go to http://localhost:8000/docs to explore the interactive API documentation provided by Swagger UI.