REACT: A Novel AI Approach that Leverages Both Edge and Cloud Resources to Improve Live Video Analytics Applications