ericpence commited on
Commit
9773a64
·
verified ·
1 Parent(s): e875cbc

Embed launch video in model card body, drop inert widget block

Browse files

The launch video does not render on the model card today. This PR fixes that.

## Why the current approach does not work

The `widget:` block added in #2 is the **Inference Widget** spec, not a general media embed. Its `output.url` only populates the example-output slot *inside* that widget. Per the Hub docs (`models-widgets.md`, "Widget Availability"), a widget requires the model's task to be supported by at least one Inference Provider. `pipeline_tag: robotics` has no widget and no provider support, so there is no widget to host the output. The Hub parses the `widgetData` (it is present verbatim in the rendered page payload) and then discards it. Silently, which is why it looked correct.

Confirmed this is tag-gating, not a problem with the asset:

- `calcuis/wan-gguf` (`pipeline_tag: text-to-video`), structurally identical widget YAML: renders a Gallery and real `<video>` elements.
- `PerceptronAI/Isaac-0.5` (`pipeline_tag: robotics`), same YAML shape: zero `<video>` elements in the rendered page.

Of the top 40 robotics models on the Hub, this repo is the only one using `widget: output.url`.

## The asset itself is fine, no changes needed

- Stored as a proper LFS object, `resolve/main` returns all 18,323,056 bytes
- Served as `Content-Type: video/mp4`
- `accept-ranges: bytes`, returns `206` on partial GET, so streaming and seeking work
- H.264 Main / yuv420p / AAC-LC, 1920x1080, 42.2s, universally web-playable

`.gitattributes` and `isaac_model_card_assets/isaac-0.5-launch.mp4` are untouched.

## Changes

1. Remove the inert `widget:` block from the frontmatter. It renders nothing on a `robotics` tag, and leaving it invites the same mistake again. `pipeline_tag: robotics` and all four `tags:` are preserved, since the tag is correct and drives discoverability even though it is what suppresses the widget.
2. Embed the video directly in the card body with a raw `<video>` tag, immediately below the H1. This is how robotics cards that do show video handle it, for example `InternRobotics/InternVLA-A1-3B` and `notmahi/dobb-e`.

Attributes: `muted` is required or Chrome and Safari block `autoplay`; `playsinline` prevents iOS Safari from forcing fullscreen; `controls` is the fallback when autoplay is blocked anyway; `max-width: 100%` keeps the 1080p source inside the card column.

## Verify after merge

```
curl -sL "https://huggingface.co/PerceptronAI/Isaac-0.5" | grep -c "<video"
```

Returns `0` on `main` today, should return `1` after this lands.

1 file changed +10 -5
README.md+10-5