Spaces:
Runtime error
Runtime error
File size: 1,069 Bytes
655980e 76d194a c8984d6 6014202 4a733cc c8984d6 248ba11 6014202 248ba11 76d194a de6a36d 4a733cc 6014202 0e302b0 7e5d871 de6a36d 0e302b0 de6a36d 8b4f6bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import gradio as gr
title="AI Peaks - Recipe-O-Matic"
description="Enter your available ingredients, let AI suggest a recipe. Follow cooking instructions if you are bold."
examples = [["eggs, potatoes"],["whole palisades peaches, pears, apples"],["tortillas, cheese, beans"]]
inputs=gr.Textbox(lines=5, label="Available Ingredients")
outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
instructions = gr.Textsection(
value="""
For best results, please enter a list of ingredients separated by commas.
You can also add notes or dietary restrictions (e.g. vegetarian, gluten-free)
""",
fontSize=12,
padding=10,
backgroundColor="#f7f7f7"
)
gr.Interface.load("models/flax-community/t5-recipe-generation",
title=title,
description=description,
examples=examples,
inputs=inputs,
outputs=outputs,
instructions=instructions,
#theme="finlaymacklon/boxy_violet"
#theme="freddyaboulton/dracula_revamped"
#theme="abidlabs/pakistan"
#theme="gradio/glass"
theme="default"
).launch() |