Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def predict_image(image):
|
|
21 |
prediction = 'female' if label == 'LABEL_0' else 'male'
|
22 |
print(f"Prediction: {prediction}, Confidence: {confidence}")
|
23 |
|
24 |
-
return
|
25 |
|
26 |
example_images = [
|
27 |
os.path.join("examples", img_name) for img_name in sorted(os.listdir("examples"))
|
|
|
21 |
prediction = 'female' if label == 'LABEL_0' else 'male'
|
22 |
print(f"Prediction: {prediction}, Confidence: {confidence}")
|
23 |
|
24 |
+
return prediction, confidence
|
25 |
|
26 |
example_images = [
|
27 |
os.path.join("examples", img_name) for img_name in sorted(os.listdir("examples"))
|