Updated the code for the new gesture recognition model.