Spaces:
Running
Running
fix app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,11 @@ def age_predict(photo):
|
|
9 |
# img = cv2.imread(photo)
|
10 |
img = cv2.resize(photo, (720, 640))
|
11 |
frame = img.copy()
|
12 |
-
print(1)
|
13 |
|
14 |
# Model for Age detection
|
15 |
age_weights = "age_deploy.prototxt"
|
16 |
age_config = "age_net.caffemodel"
|
17 |
-
age_Net = cv2.dnn.
|
18 |
|
19 |
|
20 |
# Model requirements for image
|
|
|
9 |
# img = cv2.imread(photo)
|
10 |
img = cv2.resize(photo, (720, 640))
|
11 |
frame = img.copy()
|
|
|
12 |
|
13 |
# Model for Age detection
|
14 |
age_weights = "age_deploy.prototxt"
|
15 |
age_config = "age_net.caffemodel"
|
16 |
+
age_Net = cv2.dnn.readNet(age_config, age_weights)
|
17 |
|
18 |
|
19 |
# Model requirements for image
|