Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import cv2
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from tensorflow.keras.models import load_model
|
| 7 |
from io import BytesIO
|
|
|
|
| 8 |
|
| 9 |
# Authenticate and download model from Hugging Face
|
| 10 |
repo_id = "Hammad712/closed_eye_detection"
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from tensorflow.keras.models import load_model
|
| 7 |
from io import BytesIO
|
| 8 |
+
from PIL import Image # Import PIL Image
|
| 9 |
|
| 10 |
# Authenticate and download model from Hugging Face
|
| 11 |
repo_id = "Hammad712/closed_eye_detection"
|