EmotiScan is a web app that uses machine learning to analyze emotions in text. By leveraging the power of Hugging Face's models. This application provides an intuitive way to visualize and understand the emotions conveyed in any given text input.
You can access the live project here.
I have used this model to classify the emotions: SamLowe/roberta-base-go_emotions
- Real-time emotion detection and visualization
- Dynamic background color changes based on detected emotions
- Easy-to-use text input with automatic height adjustment
- Real-time loading indicators
- Next.js
- Tailwind CSS
- ShadCN UI components
- Hugging Face API
- TypeScript
- Bun for faster build and start times
To get started with EmotiScan, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/sentiment-analysis.git cd sentiment-analysis
-
Install dependencies using Bun/NPM/Yarn/PNPM:
npm install # or yarn install # or pnpm install # or bun install
-
Run the application:
npm dev # or yarn dev # or pnpm dev # or bun dev
The application will be available at
http://localhost:3000
.
- Open the application in your browser.
- Enter your text in the provided textarea.
- The detected emotions will be displayed with corresponding colors and emojis.
- The background color of the page will change based on the predominant emotion.
Note: You may see one or two more emotions which are reflected by the entered text but the first emotion is the predominant one.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy analyzing! 😊