https://github.com/pstjohn/bde_prediction_flask
Dockerized web service for serving tensorflow 2 BDE predictions
https://github.com/pstjohn/bde_prediction_flask
docker flask python
Last synced: about 2 months ago
JSON representation
Dockerized web service for serving tensorflow 2 BDE predictions
- Host: GitHub
- URL: https://github.com/pstjohn/bde_prediction_flask
- Owner: pstjohn
- Created: 2019-06-03T14:35:09.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-09-16T21:26:47.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T22:39:09.158Z (over 1 year ago)
- Topics: docker, flask, python
- Language: CSS
- Homepage:
- Size: 288 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BDE Flask App

The only tricky dependency here is [`rdkit`](http://www.rdkit.org/docs/Install.html), but it can be installed with
```
conda install -c conda-forge rdkit
```
The dependencies are therefore
* rdkit
* pandas
* seaborn (for colors)
* flask
* wtforms
## To launch a local server:
```
cd bde_prediction
gunicorn --bind 0.0.0.0:2222 wsgi:app
```
Then browse to 0.0.0.0:2222 in a web browser
OR
```
FLASK_APP=wsgi.py flask run
```
and open localhost:5000
### Alternatively, with Docker:
```bash
docker build -t bde .
docker run -e PORT=2222 -p 2222:2222 -t bde
```
Then browse to 0.0.0.0:2222 in a web browser