Skip to main content

Widgets

Our widget offers to upload a single image and run it through the Prediction API. The result will be displayed right below in JSON format. It is the same interface that powers the widget on the repository page, e.g. on svenkreiss/decouple. Embed with:

<image-upload model="svenkreiss/decouple"></image-upload>

This Web Component is available by loading our widget library either in a browser <script> tag or by importing as a module followed by the initialization:

import { init as widgetInit } from '@structuredai/widgets';
widgetInit({token: 'your-api-token'});

You obtain your API token on your user profile page with the New Token button.

Badges#

Can be used almost anywhere:
For example, in Markdown:

[<img src="https://api.structuredai.com/repo/badge/svenkreiss/decouple.svg" />](https://www.structuredai.com/svenkreiss/decouple)