Dhahlan2000 commited on
Commit
97fda69
·
verified ·
1 Parent(s): 5ba3133

Update app.py

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