A flask application that uses DialoGPT model.
Note: The model takes about 1 min to load. It will be improved.
https://flask-service-iolnexrvpa-ue.a.run.app
- Create docker image
cd <project-directory>
docker build -t <name> .
- Test if it works by running
docker run -p 8080:8080 <image-name>
-
Create a Google Cloud account, new project and install the CLI
-
Deploy it!
cd <project-directory>
gcloud builds submit --tag gcr.io/<project-name-ID>/<image>
gcloud run deploy --image gcr.io/<project-name-ID>/<image> --cpu 2.0 --memory 8Gi