njgroene commited on
Commit
0d2c7fa
1 Parent(s): 274109a

Update app.py

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