Update app.py
Browse files
app.py
CHANGED
@@ -14,36 +14,16 @@ model.eval()
|
|
14 |
|
15 |
# Class labels (modify according to your model)
|
16 |
class_labels = [
|
17 |
-
"
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"Potato_intermediate_fresh",
|
28 |
-
"Potato_rotten",
|
29 |
-
"Tomato_fresh",
|
30 |
-
"Tomato_intermediate_fresh",
|
31 |
-
"Tomato_rotten",
|
32 |
-
"ripe_apple",
|
33 |
-
"ripe_banana",
|
34 |
-
"ripe_mango",
|
35 |
-
"ripe_oranges",
|
36 |
-
"ripe_strawberry",
|
37 |
-
"rotten_apple",
|
38 |
-
"rotten_banana",
|
39 |
-
"rotten_mango",
|
40 |
-
"rotten_oranges",
|
41 |
-
"rotten_strawberry",
|
42 |
-
"unripe_apple",
|
43 |
-
"unripe_banana",
|
44 |
-
"unripe_mango",
|
45 |
-
"unripe_oranges",
|
46 |
-
"unripe_strawberry"
|
47 |
]
|
48 |
|
49 |
def predict_freshness(image):
|
|
|
14 |
|
15 |
# Class labels (modify according to your model)
|
16 |
class_labels = [
|
17 |
+
"Apple",
|
18 |
+
"Banana",
|
19 |
+
"Bellpepper",
|
20 |
+
"Carrot",
|
21 |
+
"Cucumber",
|
22 |
+
"Potato",
|
23 |
+
"Tomato",
|
24 |
+
"mango",
|
25 |
+
"oranges",
|
26 |
+
"strawberry"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
]
|
28 |
|
29 |
def predict_freshness(image):
|