kdevoe commited on
Commit
0b3395a
·
verified ·
1 Parent(s): 7b9e8c8

Fixing label index issue

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,9 +11,9 @@ IMG_WIDTH = 96
11
  model = load_model("model_01.keras")
12
 
13
  # Define the labels for ASL classes
14
- labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
15
- 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
16
- 'T', 'U', 'V', 'W', 'X', 'Y'] # Replace with your actual label names
17
 
18
  def preprocess_frame(frame):
19
  """Preprocess the video frame for the ASL model."""
 
11
  model = load_model("model_01.keras")
12
 
13
  # Define the labels for ASL classes
14
+ labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
15
+ 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
16
+ 'U', 'V', 'W', 'X', 'Y', 'Z']
17
 
18
  def preprocess_frame(frame):
19
  """Preprocess the video frame for the ASL model."""