savitha7 commited on
Commit
c40c30e
·
verified ·
1 Parent(s): 3eb175f

updated app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,10 +23,10 @@ def predict_bmi(image):
23
 
24
  return predicted_bmi_class
25
 
26
- # Create Gradio interface
27
  interface = gr.Interface(
28
  fn=predict_bmi,
29
- inputs=gr.inputs.Image(type="pil"),
30
  outputs="text",
31
  title="BMI Prediction",
32
  description="Upload an image to predict BMI category (underweight, normal weight, overweight, obesity)."
 
23
 
24
  return predicted_bmi_class
25
 
26
+ # Create Gradio interface with updated components
27
  interface = gr.Interface(
28
  fn=predict_bmi,
29
+ inputs=gr.Image(type="pil"),
30
  outputs="text",
31
  title="BMI Prediction",
32
  description="Upload an image to predict BMI category (underweight, normal weight, overweight, obesity)."