Jamin252 commited on
Commit
4ea0bc3
·
1 Parent(s): ac795d1

fix app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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.readNetFromCaffe(age_config, age_weights)
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