recipe-o-matic / app.py
danielritchie's picture
Update app.py
055cd30 verified
raw
history blame contribute delete
751 Bytes
import gradio as gr
title="CU Workshop: Recipe-O-Matic"
description="Enter your available ingredients, let AI suggest a recipe. Think twice about actually following cooking instructions."
examples = [["eggs, potatoes"],["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()