Spaces:
Sleeping
Sleeping
Commit
·
d081832
1
Parent(s):
76d5a8f
fix form
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def get_reciepe(ingridients):
|
|
38 |
},
|
39 |
{
|
40 |
"role": "user",
|
41 |
-
"text":
|
42 |
},
|
43 |
]
|
44 |
|
@@ -60,9 +60,9 @@ def get_answer(image):
|
|
60 |
iface = gr.Interface(
|
61 |
fn=get_answer, # Function to call
|
62 |
inputs=gr.Image(label="Upload an image", type="pil"), # Input type: Image
|
63 |
-
outputs=gr.Markdown(label="
|
64 |
-
title="
|
65 |
-
description="Upload an image of a food
|
66 |
)
|
67 |
|
68 |
# Launch the Gradio app
|
|
|
38 |
},
|
39 |
{
|
40 |
"role": "user",
|
41 |
+
"text": ingridients,
|
42 |
},
|
43 |
]
|
44 |
|
|
|
60 |
iface = gr.Interface(
|
61 |
fn=get_answer, # Function to call
|
62 |
inputs=gr.Image(label="Upload an image", type="pil"), # Input type: Image
|
63 |
+
outputs=gr.Markdown(label="Result"), # Output type: Markdown
|
64 |
+
title="cook.ai",
|
65 |
+
description="Upload an image of a food ingredients"
|
66 |
)
|
67 |
|
68 |
# Launch the Gradio app
|