Web4 Frontend

Upload a photo. Let the contract decide if it is a hotdog.

This page is served directly from the NEAR contract through web4_get. The model is a quantized 500k-parameter CNN running fully on-chain. Images are center-cropped and downsampled to 64×64 RGB in the browser before the contract runs inference.

Contract
hotdog-icypee.testnet
Measured Tx Gas
~264.865 Tgas
Model Size
499,994 params
Input
64×64 RGB

Input

Try one of the embedded evaluation samples, or upload your own image. The browser only does the resize step; the classification itself comes from the contract.

Awaiting image center crop + downsample
Bring your own image PNG, JPEG, WebP, or HEIC if the browser can decode it.
Embedded samples

Result

Loading model metadata...

Prediction
No image yet
Idle
RPC
loading
Source
none
Input Prep
center crop → 64×64
Execution
contract view call