Dhahlan2000 commited on
Commit
226d75f
·
verified ·
1 Parent(s): 4ad2db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -30
app.py CHANGED
@@ -14,36 +14,16 @@ model.eval()
14
 
15
  # Class labels (modify according to your model)
16
  class_labels = [
17
- "Bellpepper_fresh",
18
- "Bellpepper_intermediate_fresh",
19
- "Bellpepper_rotten",
20
- "Carrot_fresh",
21
- "Carrot_intermediate_fresh",
22
- "Carrot_rotten",
23
- "Cucumber_fresh",
24
- "Cucumber_intermediate_fresh",
25
- "Cucumber_rotten",
26
- "Potato_fresh",
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):