Skip to content

PPPW/fortune-cookie-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI that Generates Fortune Cookie Messages

Play with it here:
https://fortune-cookie.onrender.com

Introduction

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.

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/