Skip to content

Latest commit

 

History

History

quick-start_onnxruntime-web-script-tag

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Quick Start - Web (using script tag)

This example is a demonstration of basic usage of ONNX Runtime Web, using script tag in HTML.

Using a <script> tag is a simple way to consume a published JavaScript library. See also Quick Start - Web (using bundler) for an example of using bundler.

In this example, we load onnxruntime, create an inference session with a simple model, feed input, get output as result and write it to the HTML page. All functions are called in their basic form.

Usage

  1. use NPM package light-server to serve the current folder at http://localhost:8080/

    npx light-server -s . -p 8080
  2. open your browser and navigate to the URL.