File size: 806 Bytes
655980e
 
1367e41
bdeb979
abffaa9
4a733cc
 
83bd3df
248ba11
 
6e0669b
76d194a
de6a36d
4a733cc
 
8cb5f5c
7e5d871
d32473f
981e5b5
8cb5f5c
8b4f6bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr

title="Daniel's Recipe-O-Matic"
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()