dindizz commited on
Commit
b6be941
·
verified ·
1 Parent(s): e8de02c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,10 +37,10 @@ def analyze_meal(image, description):
37
  else:
38
  return "Nomp Nomp! Please upload an image or provide a description of the meal."
39
 
40
- # Gradio app layout
41
  inputs = [
42
- gr.Image(label="Upload your meal (Take a bite out of that picture!)", type="pil"), # Removed 'optional' argument
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
  outputs = gr.Textbox(label="Nutritional Breakdown (Let's see what’s on your plate!)")
 
37
  else:
38
  return "Nomp Nomp! Please upload an image or provide a description of the meal."
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
+ gr.Image(label="Upload your meal (Take a bite out of that picture!)", type="pil")
44
  ]
45
 
46
  outputs = gr.Textbox(label="Nutritional Breakdown (Let's see what’s on your plate!)")