MoinulwithAI commited on
Commit
cc15c14
·
verified ·
1 Parent(s): 0de8628

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(shape=(128, 128), image_mode='RGB', source='upload'), # Updated input format
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.",