Dev Design Library

Sentiment Analyzer Block

Classify one text or thousands with DistilBERT SST-2 (one item per line, or a .txt/.csv first column) via useSequentialBatch — streaming results in input order with per-item error isolation, a cancel that keeps partial results, determinate.

Sentiment Analyzer 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/sentiment-analyzer
Files
  • apps/ui/src/app/blocks/text-insights/sentiment-analyzer/sentiment-analyzer.tsx
  • packages/react/src/index.ts
  • packages/core/src/index.ts
  • packages/transformers/src/index.ts
  • apps/ui/registry/localmode/results/confidence-score-badge/confidence-score-badge.tsx
  • apps/ui/registry/localmode/results/entity-stats-bar/entity-stats-bar.tsx
  • apps/ui/registry/localmode/local-first/model-loading-panel/model-loading-panel.tsx
  • apps/ui/registry/localmode/local-first/cache-badge/cache-badge.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode