Skip to content

SuperBruceJia/pytorch-flask-deploy-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MedicalNER: Deploy PyTorch NER Model with Flask and Docker as Web App

A pretty and customizable web app to deploy your Deep Learning (DL) model with ease

Usage Demo

  1. Clone the repo

    $ git clone https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp.git
  2. Run the following instructions

1). Build Docker Image

 ```shell $ docker build -t ner-model . ``` 

2). Make and Run a container for the above Image

```shell docker run -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -it --rm -d -p 8000:8000 ner-model ``` or ```shell $ docker run -d -p 8000:8000 ner-model ``` 
  1. Open the following URL (Google Chrome is recommended)

    http://0.0.0.0:8000/apidocs/#!/default/get_predict

    or

    http://0.0.0.0:8000/apidocs
  2. Input a medical sentence (in Chinese) and see the recognized entities!

    🏆 Enjoy your journey!

Docker Image

The Docker Images have been uploaded to Docker Hub.

Size of the Docker Image

  1. Anaconda Python Environment -> 2.22 GB

    Anaconda-built Python Environment, i.e., Anaconda + Python Environment

  2. Standard Python Environment -> 617.96 MB

    Just Python Environment

License

MIT License