Skip to content

BertanDogancay/GPT2-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

GPT2-Web

A flask application that uses DialoGPT model.

Try it!

Note: The model takes about 1 min to load. It will be improved.

https://flask-service-iolnexrvpa-ue.a.run.app

Steps to Deploy:

  1. Create docker image
   cd <project-directory>
   docker build -t <name> .
  1. Test if it works by running
   docker run -p 8080:8080 <image-name>
  1. Create a Google Cloud account, new project and install the CLI

  2. 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

Example Output:

ezgif.com-crop.1.mp4

"Buy Me A Coffee"