https://github.com/pppw/fortune-cookie-ai
https://github.com/pppw/fortune-cookie-ai
artificial-intelligence awd-lstm fastai webapp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pppw/fortune-cookie-ai
- Owner: PPPW
- Created: 2019-02-12T01:34:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T01:14:28.000Z (over 7 years ago)
- Last Synced: 2025-02-08T09:37:38.280Z (over 1 year ago)
- Topics: artificial-intelligence, awd-lstm, fastai, webapp
- Language: Jupyter Notebook
- Size: 1.43 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI that Generates Fortune Cookie Messages

Play with it here:
https://fortune-cookie.onrender.com
## Introduction
A [ULMFiT](https://arxiv.org/abs/1801.06146) model is trained to generate fortune cookie messages. The dataset is scraped from "[Fortune Cookie Message Archive](http://www.fortunecookiemessage.com/archive.php)". 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.
## Usage
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`
# Other
Image courtesy:
https://www.glueckskekse.de/
http://www.beyondmenu.com/