Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ model = load_model('HandSignClassifier (2).h5')
|
|
| 10 |
f = st.file_uploader("Choose a Video")
|
| 11 |
array = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','del','nothing','space']
|
| 12 |
# Read the video file from the file-like object
|
| 13 |
-
if f is not
|
| 14 |
img = Image.open(f)
|
| 15 |
img = img.resize((256,256))
|
| 16 |
img = np.reshape(img,(1,256,256,3))
|
|
|
|
| 10 |
f = st.file_uploader("Choose a Video")
|
| 11 |
array = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','del','nothing','space']
|
| 12 |
# Read the video file from the file-like object
|
| 13 |
+
if f is not None:
|
| 14 |
img = Image.open(f)
|
| 15 |
img = img.resize((256,256))
|
| 16 |
img = np.reshape(img,(1,256,256,3))
|