Spaces:
Sleeping
Sleeping
Krishs21
commited on
Commit
·
a3b83e7
1
Parent(s):
3220d0b
code change
Browse files
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]
|
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
|