danielritchie commited on
Commit
61f77ee
1 Parent(s): 7992de4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -1,3 +1,21 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/flax-community/t5-recipe-generation").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ title="AI Peaks Recipe-O-Matic"
4
+ description="Enter your available ingredients, let AI suggest a recipe. Follow cooking instructions if you are bold."
5
+ examples = [["eggs, potatoes"],["peaches, pears, apples, cherries"]]
6
+
7
+ inputs=gr.Textbox(lines=5, label="Available Ingredients")
8
+ outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
9
+
10
+ gr.Interface.load("models/flax-community/t5-recipe-generation",
11
+ title=title,
12
+ description=description,
13
+ examples=examples,
14
+ inputs=inputs,
15
+ outputs=outputs,
16
+ #theme="finlaymacklon/boxy_violet"
17
+ #theme="freddyaboulton/dracula_revamped"
18
+ #theme="abidlabs/pakistan"
19
+ #theme="gradio/glass"
20
+ theme="default"
21
+ ).launch()