Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,9 @@ def analyze_meal(image, description):
|
|
| 39 |
|
| 40 |
# Gradio app layout (swapped the positions of image upload and text description)
|
| 41 |
inputs = [
|
|
|
|
| 42 |
gr.Textbox(label="Describe your meal if image recognition fails", lines=2, placeholder="e.g., a plate of upma with coconut chutney"),
|
| 43 |
-
|
| 44 |
]
|
| 45 |
|
| 46 |
outputs = gr.Textbox(label="Nutritional Breakdown (Let's see what’s on your plate!)")
|
|
|
|
| 39 |
|
| 40 |
# Gradio app layout (swapped the positions of image upload and text description)
|
| 41 |
inputs = [
|
| 42 |
+
gr.Image(label="Upload your meal (Take a bite out of that picture!)", type="pil",
|
| 43 |
gr.Textbox(label="Describe your meal if image recognition fails", lines=2, placeholder="e.g., a plate of upma with coconut chutney"),
|
| 44 |
+
)
|
| 45 |
]
|
| 46 |
|
| 47 |
outputs = gr.Textbox(label="Nutritional Breakdown (Let's see what’s on your plate!)")
|