Skip to content

A dockerized BERT-As-Service Q&A application with Vue.js front end, trained on Harry Potter corpus

Notifications You must be signed in to change notification settings

mdrakiburrahman/bert-app-harry-potter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

bert-app-harry-potter

This Git repo is to supplement this article writeup for the app: here

A dockerized BERT-As-Service Q&A application with Vue.js front end, trained on Harry Potter corpus

Pre-requisite

A machine with the following tools installed:

  • Docker
  • Azure CLI
  • Azure Subscription

Steps to deploy from local VM (can be done with Azure DevOps as well)

Step 1. Create an Azure Container Registry from the Azure Portal: steps here

Step 2. Clone this Git Repo into the machine's local

Step 3. Build the containers using the following docker commands (cd into the respective directories in 2.docker-deploy): docker build -t dockerize-cdqa-ui-test .
docker build -t dockerize-cdqa-api-test .

This will build the two containers api (BERT model API) and UI (Vue.js web app) on your local Docker Instance.

Step 4. Run the following commands to push the containers to your Azure Container Registry (from Step 1), and deploy the Containers into a Container Group: az login
az account set --subscription "Your--Subscription--Name"

docker tag dockerize-cdqa-ui-test yourazurecontainerregistry.azurecr.io/cdqa-ui
docker tag dockerize-cdqa-api-test yourazurecontainerregistry.azurecr.io/cdqa-api

az acr login --name YourAzureContainerRegistry

docker push yourazurecontainerregistry.azurecr.io/cdqa-ui
docker push yourazurecontainerregistry.azurecr.io/cdqa-api

az group deployment create --resource-group HP-POC-CDQA-Docker --template-file azuredeploy.json

About

A dockerized BERT-As-Service Q&A application with Vue.js front end, trained on Harry Potter corpus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages