We are 4 UW students who were looking to have fun as three of us were about to embark on our first hackathon. After the Microsoft keynote we we were inspired to make something just a little sarcastic. We saw the Clarifai API and realized the possibilities were endless.

After a little brainstorming we came up with a little idea where users can upload a photo and it will take tags from the uploaded image and generate free verse poetry related to those tags. We used something called Markov Chains with the help of some long works from our favorite authors (Edgar Allen Poe and Sigmund Freud) we used massive text samples to generate lines of poetry. For good measure we also used the tumblr API to scrap posts with the tag 'poetry' so out text sample includes over 2,000 tumblr posts. Each line is seeded by a tag and these lines are sorted in descending order of how sure the Clarifai API is.

We have a node server with a custom REST API that we wrote the handle all poem generation. We also used jQuery and Bootstrap to make our frontend and a python script to scrape tumblr and compile all our text into a unified format.

We had a ton of fun making this application and we hop you love it too!

Share this project: