njgroene commited on
Commit
1136f98
·
1 Parent(s): 78c0d52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -91,7 +91,8 @@ def predict(image):
91
 
92
  gr.Interface(
93
  predict,
94
- inputs=gr.inputs.Image(label="Upload a profile picture of a single person", type="filepath"),
95
  outputs=("text"),
96
  title="Estimate age and gender from profile picture",
 
97
  ).launch()
 
91
 
92
  gr.Interface(
93
  predict,
94
+ inputs=gr.inputs.Image(label="Upload a profile picture of a single person", type="pil"),
95
  outputs=("text"),
96
  title="Estimate age and gender from profile picture",
97
+ examples=["ex0.jpg", "ex1.jpg"]
98
  ).launch()