MuchenZhang / cooking-AI

A model that generates random recipes. Trained with 50+ Epicurious recipes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation before running the program

  1. Python 3.7
  2. Flask
  3. Tensorflow for GPT-2 You have to run it on a local environment.

GPT-2

We used a pretrained model developed by Max Woolf in a google colab. We trained this model with 50+ recipes taken from Epicurious and other recipe sites.

Adjust the temperature

The value of the temperature determines how "crazy" the sentences are. The higher the temperature, the crazier the recipes get. Usually temperature is between 0.7 and 1.0 (we used 0.7 for our project). We experimented with a very high temperature, 10 to be exact, and the results are fun to read.

Useful resources

  1. GPT-2 Text Generating model
  2. Woolf's personal blog to explain how to use GPT-2
  3. Flask Web App
  4. Transformers

About

A model that generates random recipes. Trained with 50+ Epicurious recipes.


Languages

Language:Jupyter Notebook 96.4%Language:HTML 2.0%Language:Python 0.9%Language:CSS 0.7%