farid678 commited on
Commit
7cc09ef
1 Parent(s): 6e4fcd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,5 +26,5 @@ def predict_age_gender(image):
26
  return {'Gender': ['Fmale' if gender_predict > 0.5 else 'Male'], 'Age': age_predict[0][0]}
27
 
28
 
29
- iface = gr.Interface(predict_age_gender, gr.Image(), gr.Text())
30
  iface.launch()
 
26
  return {'Gender': ['Fmale' if gender_predict > 0.5 else 'Male'], 'Age': age_predict[0][0]}
27
 
28
 
29
+ iface = gr.Interface(predict_age_gender, gr.Image((128, 128)), gr.Text())
30
  iface.launch()