Krishs21 commited on
Commit
a3b83e7
·
1 Parent(s): 3220d0b

code change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def predict(image):
32
  prediction = model.predict(img_array)
33
 
34
  # Return the result
35
- result = 'Human' if prediction[0] > 0.5 else 'Non-Human'
36
  return result, prediction[0]
37
 
38
  # Create the Gradio interface
 
32
  prediction = model.predict(img_array)
33
 
34
  # Return the result
35
+ result = 'Human' if prediction[0] < 0.5 else 'Non-Human'
36
  return result, prediction[0]
37
 
38
  # Create the Gradio interface