Code Monkey home page Code Monkey logo

harpo_eats's Introduction

Follow Harpo's epicurean journey via snippets of his autobiography and the NYPL menu collection!

About

Harpo Eats! is a program to computer-generate a novel of ~50,000 words, in the spirit of NaNoGenMo. Taking excerpts to do with food from Harpo Marx's autobiography Harpo Speaks! (Marx, Harpo. Harpo Speaks! New York: Limelight, 1985.), it arbitrarily replaces mentions of dishes, restaurants and eating places, and meal and dish costs—in various period-appropriate formats—with corresponding items arbitrarily selected from the New York Public Library's collection of menus (What's on the Menu?). The number of dishes Harpo orders and consumes increase exponentially as we follow the very abridged narrative of his life (in sequential order). The program further makes use of OpenAI's DALL·E 2 to computer generate the originally lacking illustrations. By exponentially increasing Harpo's food orders and food consumption (and presumably digestive abilities), Harpo Eats! thereby increases the already international, translingual, and transcultural nature of food to match the supremely international, translingual, and transcultural nature of the best Marx brother.

To Run

Harpo Eats! requires a few python packages, most you will already have installed. These two maybe not: openai, and reportlab. It also runs on python 3. To install these two packages:
pip3 install openai
pip3 install reportlab
Lastly, in the directory housing the other two necessary files from this repo (harpos_menu.pkl, excerpts.txt), run python3 halff_wmd_4.0.py. It will ask you for a OpenAI organization code and API token, which you can get here, after making an account or signing in. The program will run and produce a PDF of Harpo Eats!.

harpo_eats's People

Contributors

raphihalff avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.