title: Use Azure custom vision model with Node.js
body: <p>i am new to Tensorflow.js so, i don't quite understand it completely.
  I have trained an object detection model using Azure Custom Vision (<a href="https://customvision.ai/" rel="nofollow noreferrer">customvision.ai</a>) and as described in there documentation i exported the model for Tensorflow.js for offline use in my Node.js Project.</p>
  
  <p>They have a very brief guide on Github (<a href="https://github.com/microsoft/customvision-tfjs" rel="nofollow noreferrer">https://github.com/microsoft/customvision-tfjs</a>) on how to use the model with Tensorflow.js, i tried following the steps but was not able to run it.</p>
  
  <p>If anyone has experience with Tensorflow.js, please help me in this i am stuck on it for past 3 days.</p>
  
  <p>This is the Code that i am trying to execute, i am getting Error </p>
  
  <blockquote>
    <p>'await can only be used with async functions'</p>
  </blockquote>
  
  <p>even though the loadModelAsync() function is Async.</p>
  
  <pre><code>const cvstfjs = require('@microsoft/customvision-tfjs');
  
  let model = new cvstfjs.ObjectDetectionModel();
  await model.loadModelAsync('model.json');
  const image = document.getElementById('image');
  const result = await model.executeAsync(image);
  </code></pre>