recipe-o-matic / app.py
gryo2310's picture
Update app.py
dca23ba verified
raw
history blame
787 Bytes
import gradio as gr
title="Kevin"
description="Enter your available ingredients and get a recipe in return; think twice about letting AI feed you.<P>CU workshop led by Daniel Ritchie from the Brain Wave Collective."
examples = [["eggs, potatoes, carrots"],["peaches, pears, apples, cherries"]]
inputs=gr.Textbox(lines=5, label="Available Ingredients")
outputs=gr.components.Textbox(label="WARNING: Eat at your own risk!")
gr.Interface.load("models/flax-community/t5-recipe-generation",
title=title,
description=description,
examples=examples,
inputs=inputs,
outputs=outputs,
#theme="finlaymacklon/boxy_violet"
#theme="freddyaboulton/dracula_revamped"
#theme="abidlabs/pakistan"
#theme="gradio/glass"
theme="default"
).launch()