Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import cv2
|
| 2 |
from tensorflow.keras.models import load_model
|
| 3 |
from PIL import Image
|
| 4 |
-
import numpy as np
|
|
|
|
| 5 |
import streamlit as st
|
| 6 |
|
| 7 |
# Open the video file
|
|
@@ -21,7 +22,7 @@ if video_file is not None:
|
|
| 21 |
|
| 22 |
# Initialize a counter for frames
|
| 23 |
frame_count = 0
|
| 24 |
-
model = load_model('HandSignClassifier.h5')
|
| 25 |
array = ['a','b','c','d','e','f','g','h','i','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y']
|
| 26 |
out = ''
|
| 27 |
|
|
|
|
| 1 |
import cv2
|
| 2 |
from tensorflow.keras.models import load_model
|
| 3 |
from PIL import Image
|
| 4 |
+
import numpy as np
|
| 5 |
+
import tensorflow as tf
|
| 6 |
import streamlit as st
|
| 7 |
|
| 8 |
# Open the video file
|
|
|
|
| 22 |
|
| 23 |
# Initialize a counter for frames
|
| 24 |
frame_count = 0
|
| 25 |
+
model = tf.keras.models.load_model('HandSignClassifier.h5')
|
| 26 |
array = ['a','b','c','d','e','f','g','h','i','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y']
|
| 27 |
out = ''
|
| 28 |
|