Dev Design Library

Text Classifier Block

Custom-label zero-shot classification with MobileBERT MNLI over a user-editable label set (add trimmed + case-insensitively deduped, remove, live count) with an email/message textarea and sample loader. Results render a top-result hero (win.

Text Classifier 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/text-insights/text-classifier
Files
  • apps/ui/src/app/blocks/text-insights/text-classifier/text-classifier.tsx
  • packages/react/src/index.ts
  • packages/core/src/index.ts
  • packages/transformers/src/index.ts
  • apps/ui/registry/localmode/results/editable-label-set/editable-label-set.tsx
  • apps/ui/registry/localmode/results/top-result-card/top-result-card.tsx
  • apps/ui/registry/localmode/results/scored-result-bar-list/scored-result-bar-list.tsx
  • apps/ui/registry/localmode/local-first/model-loading-panel/model-loading-panel.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode