itsTomLie commited on
Commit
3b44b2d
1 Parent(s): 7272078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 label, confidence
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"))