Spaces:
Sleeping
Sleeping
Fixing label index issue
Browse files
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 |
-
|
| 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."""
|