Spaces:
Running
Running
fix app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def age_predict(photo):
|
|
12 |
|
13 |
# Model for Age detection
|
14 |
age_weights = "age_deploy.prototxt"
|
15 |
-
age_config = "
|
16 |
age_Net = cv2.dnn.readNet(age_config, age_weights)
|
17 |
|
18 |
|
@@ -79,7 +79,7 @@ inter_arguments = {
|
|
79 |
"inputs":gr.components.Image(),
|
80 |
"outputs": gr.components.Textbox(),
|
81 |
"title": "Age Detector",
|
82 |
-
"description": "Detect your age
|
83 |
|
84 |
}
|
85 |
gr.Interface(**inter_arguments).launch(share=True)
|
|
|
12 |
|
13 |
# Model for Age detection
|
14 |
age_weights = "age_deploy.prototxt"
|
15 |
+
age_config = "age_net1.caffemodel"
|
16 |
age_Net = cv2.dnn.readNet(age_config, age_weights)
|
17 |
|
18 |
|
|
|
79 |
"inputs":gr.components.Image(),
|
80 |
"outputs": gr.components.Textbox(),
|
81 |
"title": "Age Detector",
|
82 |
+
"description": "Detect your age class",
|
83 |
|
84 |
}
|
85 |
gr.Interface(**inter_arguments).launch(share=True)
|