Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def predict_image(image):
|
|
18 |
label = result[0]['label']
|
19 |
confidence = result[0]['score']
|
20 |
|
21 |
-
print(f"Prediction: {label}, Confidence: {confidence}")
|
22 |
|
23 |
return label, confidence
|
24 |
|
|
|
18 |
label = result[0]['label']
|
19 |
confidence = result[0]['score']
|
20 |
|
21 |
+
print(f"Prediction: {"female" if label == "Label_0" else "male" }, Confidence: {confidence}")
|
22 |
|
23 |
return label, confidence
|
24 |
|