Dhahlan2000 commited on
Commit
8317644
·
verified ·
1 Parent(s): 4d3058e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -2
app.py CHANGED
@@ -13,8 +13,36 @@ model = model.to(device)
13
 
14
  # Class labels (modify according to your model)
15
  class_labels = [
16
- "Overripe", "Ripe", "Rotten", "Unripe",
17
- # Add all 30 class labels here
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ]
19
 
20
  def predict_freshness(image):
 
13
 
14
  # Class labels (modify according to your model)
15
  class_labels = [
16
+ "unripe_oranges",
17
+ "Potato_intermediate_fresh",
18
+ "Cucumber_rotten",
19
+ "Potato_fresh",
20
+ "unripe_banana",
21
+ "rotten_apple",
22
+ "Carrot_fresh",
23
+ "Bellpepper_intermediate_fresh",
24
+ "rotten_mango",
25
+ "ripe_apple",
26
+ "Cucumber_fresh",
27
+ "unripe_strawberry",
28
+ "Tomato_intermediate_fresh",
29
+ "Cucumber_intermediate_fresh",
30
+ "Tomato_rotten",
31
+ "rotten_strawberry",
32
+ "ripe_oranges",
33
+ "ripe_mango",
34
+ "Carrot_rotten",
35
+ "Tomato_fresh",
36
+ "unripe_mango",
37
+ "Carrot_intermediate_fresh",
38
+ "Potato_rotten",
39
+ "ripe_banana",
40
+ "rotten_oranges",
41
+ "Bellpepper_fresh",
42
+ "rotten_banana",
43
+ "ripe_strawberry",
44
+ "unripe_apple",
45
+ "Bellpepper_rotten"
46
  ]
47
 
48
  def predict_freshness(image):