Platform
Resources
Pricing
Sign in
Contact us
Bairui Su
Creative generation toolmaker, believe that today's tool help shape tomorrow’s art. Creator Charming.js. Author @antv/g2@5.x.
Workspace
Fork
Public
By
Bairui SU
Edited
Feb 26
2
Insert cell
Insert cell
bird
=
FileAttachment
(
"bird.jpg"
)
.
image
(
)
Insert cell
cat
=
FileAttachment
(
"cat.jpg"
)
.
image
(
)
Insert cell
classifier
=
ml5
.
imageClassifier
(
"MobileNet"
)
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
classifier
.
classify
(
bird
)
Insert cell
function
promisify
(
foo
)
{
return
(
...
params
)
=>
{
const
promise
=
new
Promise
(
(
resolve
)
=>
foo
(
...
params
,
resolve
)
)
;
return
promise
;
}
;
}
Insert cell
ml5
=
require
(
"ml5"
)
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
bird
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cat
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
classifier
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
promisify
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ml5
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML