Bad-Wiki is an automatic text generator. It creates nonsense definitions for the terms you provide.
Demo is available here - give it a try :)
To get started on this project, follow these steps:
- Clone:
git clone https://github.com/Norod/gpt2-en-badwiki.git
andcd gpt2-en-badwiki
- Install Dependencies:
pip install -r requirements.txt
- Run
download.sh
to download and extract the trained GPT-2 model - Run server:
python main.py
- Open Web Browser and visit:
http://localhost:8080/
- Type
Hello world
and press onDefine
(or hit Enter) - Enjoy!
You may also want to build and run this project in docker container
- Build:
docker build -t gpt2-en-badwiki .
(will take some time) - Run:
docker run -p 8080:8080 --rm -d gpt2-en-badwiki
If successful, you will see something like this:
This repository is based upon the code and knowlege found in the following Medium tutorial: Deploy Machine Learning Model in Google Cloud using Cloud Run