Dev Design Library

Smart Gallery Block

Adaptive, device-aware CLIP photo ingest (streamEmbedManyImages at a computeOptimalBatchSize batch size shown on an adaptive-batch-card) with per-item progress, per-batch zero-shot categorization (other/0 fallback), and a grid/list gallery.

Smart Gallery Block preview
Library
LocalMode
Framework
React
Type
block
License
MIT
Dependencies
@localmode/core, @localmode/react, @localmode/transformers, lucide-react
Install
npx shadcn add @localmode/ui/ui/blocks/photo/smart-gallery
Files
  • apps/ui/src/app/blocks/photo/smart-gallery/smart-gallery.tsx
  • packages/react/src/index.ts
  • packages/transformers/src/index.ts
  • apps/ui/src/lib/utils.ts
  • apps/ui/registry/localmode/local-first/model-selector/model-selector.tsx
  • apps/ui/registry/localmode/local-first/model-downloader/model-downloader.tsx
  • apps/ui/registry/localmode/media-vision/media-dropzone/media-dropzone.tsx
  • apps/ui/registry/localmode/media-vision/image-result-gallery/image-result-gallery.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode