File size: 734 Bytes
7992de4
 
61f77ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"],["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()