danielritchie commited on
Commit
6014202
·
1 Parent(s): c8984d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -1,19 +1,29 @@
1
  import gradio as gr
2
 
3
-
4
  title="AI Peaks - Recipe-O-Matic"
5
  description="Enter your available ingredients, let AI suggest a recipe. Follow cooking instructions if you are bold."
6
- examples = [["eggs, potatoes"],["peaches, pears, apples"],["tortillas, cheese, beans"]]
7
 
8
  inputs=gr.Textbox(lines=5, label="Available Ingredients")
9
  outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
10
 
 
 
 
 
 
 
 
 
 
 
11
  gr.Interface.load("models/flax-community/t5-recipe-generation",
12
  title=title,
13
  description=description,
14
  examples=examples,
15
  inputs=inputs,
16
  outputs=outputs,
 
17
  #theme="finlaymacklon/boxy_violet"
18
  #theme="freddyaboulton/dracula_revamped"
19
  #theme="abidlabs/pakistan"
 
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"],["whole palisades peaches, pears, apples"],["tortillas, cheese, beans"]]
6
 
7
  inputs=gr.Textbox(lines=5, label="Available Ingredients")
8
  outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
9
 
10
+ instructions = gr.Textsection(
11
+ value="""
12
+ For best results, please enter a list of ingredients separated by commas.
13
+ You can also add notes or dietary restrictions (e.g. vegetarian, gluten-free)
14
+ """,
15
+ fontSize=12,
16
+ padding=10,
17
+ backgroundColor="#f7f7f7"
18
+ )
19
+
20
  gr.Interface.load("models/flax-community/t5-recipe-generation",
21
  title=title,
22
  description=description,
23
  examples=examples,
24
  inputs=inputs,
25
  outputs=outputs,
26
+ instructions=instructions,
27
  #theme="finlaymacklon/boxy_violet"
28
  #theme="freddyaboulton/dracula_revamped"
29
  #theme="abidlabs/pakistan"