Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/topagrume/mlops_project
https://github.com/topagrume/mlops_project
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/topagrume/mlops_project
- Owner: TopAgrume
- Created: 2024-10-23T12:33:48.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T14:14:26.000Z (2 months ago)
- Last Synced: 2024-11-06T03:48:05.700Z (about 2 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web server project
This project contains a dockerized FastAPI web server for predicting house prices based on input features, using a pre-trained regression model. The application exposes the API endpoint `/predict` where users can send data to get a price prediction. A GitHub Action configuration to build, tag, deploy, and manage the docker image on a remote server is also provided.
## Running locally
To run the web server locally using Docker, follow these steps:
```sh
docker compose build
docker compose up -d
```## Test the prediction API
Send a POST request to the `/predict` endpoint (locally: http://localhost:5000/predict) with a JSON body containing:
- `size` (float) for the size of the house.
- `nb_rooms` (int) for the number of rooms.
- `garden` (bool) whether the house has a garden.Example:
```json
{
"size": 100.0,
"nb_rooms": 3,
"garden": true
}
```