diff --git a/examples/examples-browser/views/webcamAgeAndGenderRecognition.html b/examples/examples-browser/views/webcamAgeAndGenderRecognition.html
index 01a1b665..4d44082e 100644
--- a/examples/examples-browser/views/webcamAgeAndGenderRecognition.html
+++ b/examples/examples-browser/views/webcamAgeAndGenderRecognition.html
@@ -1,55 +1,56 @@
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
@@ -62,14 +63,14 @@
@@ -98,14 +99,14 @@
@@ -113,91 +114,116 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+ setTimeout(() => onPlay())
+ }
+
+ async function run() {
+ // load face detection and face expression recognition models
+ await changeFaceDetector(TINY_FACE_DETECTOR)
+ await faceapi.nets.ageGenderNet.load('/')
+ changeInputSize(224)
+
+ // try to access users webcam and stream the images
+ // to the video element
+ const stream = await navigator.mediaDevices.getUserMedia({video: {}})
+ const videoEl = $('#inputVideo').get(0)
+ videoEl.srcObject = stream
+ }
+
+ function updateResults() {
+ }
+
+ $(document).ready(function () {
+ renderNavBar('#navbar', 'webcam_age_and_gender_recognition')
+ initFaceDetectionControls()
+ run()
+ })
+
-