https://github.com/deven96/pneumoniapredictionapi
flask app wrapped around a keras pneumonia classifier
https://github.com/deven96/pneumoniapredictionapi
Last synced: about 1 month ago
JSON representation
flask app wrapped around a keras pneumonia classifier
- Host: GitHub
- URL: https://github.com/deven96/pneumoniapredictionapi
- Owner: deven96
- License: mit
- Created: 2019-03-29T17:57:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T20:52:01.000Z (about 6 years ago)
- Last Synced: 2025-04-01T21:55:55.179Z (about 2 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pnuemonia Prediction API
Flask API for binary classification of xray images for web application [PneuNet](https://github.com/deven96/PneuNet)
[](https://travis-ci.com/deven96/PneumoniaPredictionAPI)

[](https://opensource.org/licenses/MIT)
- [ImageQ API](#imageq-api)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Running Locally](#running-locally)
- [Deploy](#deploy)
- [Documentation](#documentation)
- [Todo](#todo)## Getting Started
Clone the repo
```bash
# SSH
git clone [email protected]:deven96/PneumoniaPredictionAPI.git
# HTTPS
git clone https://github.com/deven96/PneumoniaPredictionAPI.git
```Activate virtual environment. All project work should be done in virtualenvs and virtualenv names must be added to gitignore
### Installation
- Install the requirements
```bash
# install pipenv
sudo pip3 install pipenv# install requirements
pipenv install
```## Running Locally
- With flask dev server
```bash
python flask_api/run_keras_server.py
```
Configured to run on port 8008- With Gunicorn (port 8008)
```bash
gunicorn -b :8008 flask_api:app
```## Deploy
The `/predict` endpoint on `master` branch of the repo is linked to automatically deploy to be hosted on [Google Cloud](https://pneumonia-api.appspot.com/predict)
## Documentation
Documentation including example use are available on [hosted version](https://pneumonia-api.appspot.com)
## Todo
- Setup GCP serving pipeline for API
- Integrate weight updates from colaboratory