Spaces:
Sleeping
Sleeping
danielritchie
commited on
Commit
•
248ba11
1
Parent(s):
b220466
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,23 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
inputs=gr.Textbox(lines=5, label="Available Ingredients"),
|
6 |
-
outputs=
|
|
|
|
|
|
|
|
|
7 |
).launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
|
4 |
+
title="Recipe-O-Matic"
|
5 |
+
|
6 |
+
description="Select a Category, enter a Topic, and click Submit to find out how generative Yo Momma is.<br><br>You can also try selecting one of the supplied examples.",
|
7 |
+
|
8 |
+
examples = [["eggs potatoes"]]
|
9 |
+
|
10 |
+
outputs=gr.components.Textbox(label=""),
|
11 |
+
|
12 |
+
|
13 |
+
gr.Interface.load("models/flax-community/t5-recipe-generation",
|
14 |
+
title=title,
|
15 |
+
description=description,
|
16 |
+
examples=examples,
|
17 |
inputs=gr.Textbox(lines=5, label="Available Ingredients"),
|
18 |
+
outputs=outputs,
|
19 |
+
#theme="finlaymacklon/boxy_violet",
|
20 |
+
#theme="freddyaboulton/dracula_revamped",
|
21 |
+
#theme="abidlabs/pakistan",
|
22 |
+
theme="gradio/glass",
|
23 |
).launch()
|