Platform
Resources
Pricing
Sign in
Get started
Simon Willison
Workspace
Fork
Public
By
Simon Willison
Edited
Oct 7, 2023
Insert cell
Insert cell
ort
=
import
(
"https://cdn.jsdelivr.net/npm/onnxruntime-web@1.16.0/+esm"
)
Insert cell
model_url
=
"https://huggingface.co/TaylorAI/bge-micro/resolve/main/onnx/model_quantized.onnx"
Insert cell
session
=
await
ort
.
default
.
InferenceSession
.
create
(
model_url
,
{
executionProviders
:
[
"webgl"
]
}
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ort
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
model_url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
session
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML