itsTomLie commited on
Commit
7272078
·
verified ·
1 Parent(s): 362ed29

Update app.py

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