updated app
Browse files
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.
|
| 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)."
|