Play with it here:
https://fortune-cookie.onrender.com
A ULMFiT model is trained to generate fortune cookie messages. The dataset is scraped from "Fortune Cookie Message Archive". This dataset is pretty small due to the limited the online sources for fortune cookie messages. However, with the power of transfer learning and UMLFit, the model is able to generate fortune cookie style messages after only a few epochs of training.
/model/get_data.ipynb
: web scraping code.
/model/model.ipynb
: model training code.
The app is deployed on:
https://fortune-cookie.onrender.com
To play with it on local server, install the requirements:
pip install -r requirements.txt
Under the /cookie/
folder, start the server:
python app/server.py serve
Open your browser and visit the website:
http://localhost:5042
Image courtesy:
https://www.glueckskekse.de/
http://www.beyondmenu.com/