{"id":19250601,"url":"https://github.com/superbrucejia/pytorch-flask-deploy-webapp","last_synced_at":"2025-07-13T00:40:12.593Z","repository":{"id":130813903,"uuid":"294363082","full_name":"SuperBruceJia/pytorch-flask-deploy-webapp","owner":"SuperBruceJia","description":"This is a Flask + Docker deployment of the PyTorch-based Named Entity Recognition (NER) Model (BiLSTM-CRF) in the Medical AI.","archived":false,"fork":false,"pushed_at":"2023-01-28T12:45:23.000Z","size":2249,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T12:44:11.222Z","etag":null,"topics":["bilstm-crf","bilstm-crf-model","deep-learning","deep-learning-models","docker","docker-container","dockerfile","flagger","flask-application","flask-docker","flask-docker-demo","medical","medical-application","medical-application-webapp","named-entity-recognition","python","pytorch","pytorch-models","webapp"],"latest_commit_sha":null,"homepage":"https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperBruceJia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-10T09:23:49.000Z","updated_at":"2024-06-07T15:13:41.000Z","dependencies_parsed_at":"2023-05-18T17:30:32.599Z","dependency_job_id":null,"html_url":"https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SuperBruceJia/pytorch-flask-deploy-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperBruceJia%2Fpytorch-flask-deploy-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperBruceJia%2Fpytorch-flask-deploy-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperBruceJia%2Fpytorch-flask-deploy-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperBruceJia%2Fpytorch-flask-deploy-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperBruceJia","download_url":"https://codeload.github.com/SuperBruceJia/pytorch-flask-deploy-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperBruceJia%2Fpytorch-flask-deploy-webapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265076118,"owners_count":23707513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilstm-crf","bilstm-crf-model","deep-learning","deep-learning-models","docker","docker-container","dockerfile","flagger","flask-application","flask-docker","flask-docker-demo","medical","medical-application","medical-application-webapp","named-entity-recognition","python","pytorch","pytorch-models","webapp"],"created_at":"2024-11-09T18:18:01.510Z","updated_at":"2025-07-13T00:40:12.585Z","avatar_url":"https://github.com/SuperBruceJia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MedicalNER: Deploy PyTorch NER Model with Flask and Docker as Web App\n\nA pretty and customizable web app to deploy your Deep Learning (DL) model with ease\n\n## Notice\n\n***This repo was to deploy any kind of ML or DL model(s) rather than just NER model.***\n\n## Usage Demo\n\n1. Clone the repo\n\n    ```\n    $ git clone https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp.git\n    ```\n\n2. Run the following instructions\n  \n    1). Build Docker Image\n\n      ```\n      $ docker build -t ner-model .\n      ```\n  \n    2). Make and Run a container for the above Image\n  \n    ```\n    $ docker run -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -it --rm -d -p 8000:8000 ner-model\n    \n    or \n    \n    $ docker run -d -p 8000:8000 ner-model\n    ```\n  \n3. Open the following URL (Google Chrome is recommended)  \n  \n    ```html\n    http://0.0.0.0:8000/apidocs/#!/default/get_predict\n    \n    or \n    \n    http://0.0.0.0:8000/apidocs\n    ```\n  \n4. Input a medical sentence (in Chinese) and see the recognized entities!\n\n    \u003cp align=\"center\"\u003e\n      \u003ca href=\"https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp\"\u003e \u003cimg src=\"https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp/raw/master/screenshot.png\"\u003e\u003c/a\u003e \n    \u003c/p\u003e\n\n    🏆 Enjoy your journey!\n\n## Docker Image\n\nThe Docker Images have been uploaded to [Docker Hub](https://hub.docker.com/r/shuyuej/ner-pytorch-model/tags).\n\n## Size of the Docker Image\n\n1. [Anaconda Python Environment](https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp/tree/master/BiLSTM-docker-Anaconda) --\u003e **2.22 GB** (V1.0)\n\n    *Used Image*: continuumio/anaconda3:4.4.0\n\n2. [Standard Python Environment](https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp/tree/master/BiLSTM-docker-Python) --\u003e **617.96 MB** (V2.0)\n\n    *Used Image*: Python:3\n    \n3. [Smaller Python Environment](https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp/tree/master/BiLSTM-docker-Python-Smaller) --\u003e **447.05 MB** (V4.0)\n\n    *Used Image*: python:3.8-slim-buster with Apache 2\n\n4. [Much Smaller Python Environment](https://github.com/SuperBruceJia/pytorch-flask-deploy-webapp/tree/master/BiLSTM-docker-Python-without-Apache) --\u003e **169.02 MB** (V5.0)\n\n    *Used Image*: python:3.8-slim-buster without Apache 2\n    \n## Reference Image and Readings\n\n1. [Python Image](https://hub.docker.com/_/python?tab=description)\n\n2. [Anaconda Image](https://hub.docker.com/r/continuumio/anaconda3)\n\n3. [My uploaded Docker Images](https://hub.docker.com/r/shuyuej/ner-pytorch-model/tags)\n\n4. [The best Docker base image for your Python application](https://pythonspeed.com/articles/base-image-python-docker-images/)\n\n5. [Docker Container UTF-8 Encoding](https://developer.aliyun.com/article/175738)\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrucejia%2Fpytorch-flask-deploy-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbrucejia%2Fpytorch-flask-deploy-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrucejia%2Fpytorch-flask-deploy-webapp/lists"}