Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def predict_age(image):
|
|
62 |
# -------- GRADIO INTERFACE --------
|
63 |
iface = gr.Interface(
|
64 |
fn=predict_age,
|
65 |
-
inputs=gr.Image(
|
66 |
outputs="text",
|
67 |
title="Age Prediction Model",
|
68 |
description="Upload an image to predict the age.",
|
|
|
62 |
# -------- GRADIO INTERFACE --------
|
63 |
iface = gr.Interface(
|
64 |
fn=predict_age,
|
65 |
+
inputs=gr.Image(image_size=(128, 128), image_mode='RGB', source='upload'), # Corrected argument
|
66 |
outputs="text",
|
67 |
title="Age Prediction Model",
|
68 |
description="Upload an image to predict the age.",
|