ariankhalfani
commited on
Commit
•
53eb3b1
1
Parent(s):
45fa0d3
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def predict_image(input_image, name, age, medical_record, sex):
|
|
57 |
|
58 |
# Determine the label based on the class index
|
59 |
class_index = highest_confidence_result.cls.item()
|
60 |
-
if class_index ==
|
61 |
label = "Mature"
|
62 |
color = (255, 0, 0) # Red for Mature
|
63 |
else:
|
|
|
57 |
|
58 |
# Determine the label based on the class index
|
59 |
class_index = highest_confidence_result.cls.item()
|
60 |
+
if class_index == 0:
|
61 |
label = "Mature"
|
62 |
color = (255, 0, 0) # Red for Mature
|
63 |
else:
|