#
Model Card components

Model Card Components are special elements that you can inject directly into your Model Card markdown to display powerful custom components in your model page. These components are authored by us, feel free to share ideas about new Model Card component in this discussion.

##
The Gallery component

The `<Gallery />` component can be used in your model card to showcase your generated images and videos.

###
How to use it?

1. Update your Model Card widget metadata to add the media you want to showcase.

    widget:
    - text: "drawing of tintin in a shop"
      output:
        url: "images/shop.png"
    - text: "drawing of tintin watching rugby"
      output:
        url: "images/rugby.png"
      parameters:
        negative_prompt: "blurry"
    - text: "tintin working at the office"
      output:
        url: "images/office.png"

2. Add the `<Gallery />` component to your card. The widget metadata will be used by the `<Gallery />` component to display the media with each associated prompt.

    <Gallery />

    ## Model description

    TintinIA is fine-tuned version of Stable-Diffusion-xl trained on 125 comics panels from Tintin album.

> Hint: Support of Card Components through the GUI editor coming soon…

< > Update on GitHub