Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,10 @@ title = "Female/Male Classifier"
|
|
22 |
description = "A Female/Male classifier trained on the duckduckgo search result with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
23 |
examples = ['femaleDefault.jpg', 'maleDefault.jpg', 'dragQueen1.jpg', 'dragQueen2.jpg', 'femaleAngry1.jpg', 'femaleAngry2.jpg', 'femaleMuscle1.jpg', 'femaleMuscle2.jpg', 'maleAsian.jpg', 'maleEurope.jpg', 'femaleAsian.jpg', 'femaleDefault.jpg', 'maleCrying2.jpg', 'maleCrying2No.jpg']
|
24 |
|
25 |
-
# Update the Gradio Interface
|
26 |
inter = gr.Interface(
|
27 |
fn=predict,
|
28 |
-
inputs=gr.Image(type="pil"
|
29 |
outputs=gr.Label(),
|
30 |
title=title,
|
31 |
description=description,
|
|
|
22 |
description = "A Female/Male classifier trained on the duckduckgo search result with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
23 |
examples = ['femaleDefault.jpg', 'maleDefault.jpg', 'dragQueen1.jpg', 'dragQueen2.jpg', 'femaleAngry1.jpg', 'femaleAngry2.jpg', 'femaleMuscle1.jpg', 'femaleMuscle2.jpg', 'maleAsian.jpg', 'maleEurope.jpg', 'femaleAsian.jpg', 'femaleDefault.jpg', 'maleCrying2.jpg', 'maleCrying2No.jpg']
|
24 |
|
25 |
+
# Update the Gradio Interface
|
26 |
inter = gr.Interface(
|
27 |
fn=predict,
|
28 |
+
inputs=gr.Image(type="pil"), # Removed 'shape' argument
|
29 |
outputs=gr.Label(),
|
30 |
title=title,
|
31 |
description=description,
|