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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- 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!)")
 
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!)")