https://github.com/bertandogancay/gpt2-web
A flask application that uses DialoGPT model.
https://github.com/bertandogancay/gpt2-web
chatbot dialogpt docker flask-application gpt-2
Last synced: 2 months ago
JSON representation
A flask application that uses DialoGPT model.
- Host: GitHub
- URL: https://github.com/bertandogancay/gpt2-web
- Owner: BertanDogancay
- Created: 2023-03-22T07:37:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T10:07:19.000Z (over 3 years ago)
- Last Synced: 2025-01-28T13:52:16.654Z (over 1 year ago)
- Topics: chatbot, dialogpt, docker, flask-application, gpt-2
- Language: HTML
- Homepage:
- Size: 70.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
``` command
cd
docker build -t .
```
2) Test if it works by running
``` command
docker run -p 8080:8080
```
3) Create a Google Cloud account, new project and install the CLI
4) Deploy it!
``` command
cd
gcloud builds submit --tag gcr.io//
gcloud run deploy --image gcr.io// --cpu 2.0 --memory 8Gi
```
## Example Output:
https://user-images.githubusercontent.com/111835151/226846308-524a2592-78e8-480f-bde5-f66bfcb3f6e3.mp4
[](https://www.buymeacoffee.com/bertandogancay)