Spaces:
Sleeping
Sleeping
danielritchie
commited on
Commit
•
d250411
1
Parent(s):
6014202
Update app.py
Browse files
app.py
CHANGED
@@ -7,15 +7,7 @@ examples = [["eggs, potatoes"],["whole palisades peaches, pears, apples"],["tort
|
|
7 |
inputs=gr.Textbox(lines=5, label="Available Ingredients")
|
8 |
outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
|
9 |
|
10 |
-
|
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,
|
@@ -23,7 +15,7 @@ gr.Interface.load("models/flax-community/t5-recipe-generation",
|
|
23 |
examples=examples,
|
24 |
inputs=inputs,
|
25 |
outputs=outputs,
|
26 |
-
|
27 |
#theme="finlaymacklon/boxy_violet"
|
28 |
#theme="freddyaboulton/dracula_revamped"
|
29 |
#theme="abidlabs/pakistan"
|
|
|
7 |
inputs=gr.Textbox(lines=5, label="Available Ingredients")
|
8 |
outputs=gr.components.Textbox(label="WARNING: Eat at your own risk.")
|
9 |
|
10 |
+
additional_info = gr.Textbox(lines=3, label="Special Instructions")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
gr.Interface.load("models/flax-community/t5-recipe-generation",
|
13 |
title=title,
|
|
|
15 |
examples=examples,
|
16 |
inputs=inputs,
|
17 |
outputs=outputs,
|
18 |
+
additional_info=additional_info,
|
19 |
#theme="finlaymacklon/boxy_violet"
|
20 |
#theme="freddyaboulton/dracula_revamped"
|
21 |
#theme="abidlabs/pakistan"
|