Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.44.1
metadata
title: Sentiment Analyzer
emoji: π
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.17.1
app_file: app.py
pinned: false
license: apache-2.0
Sentiment Analyzer
An interactive tool for sentiment analysis using the nlptown/bert-base-multilingual-uncased-sentiment
model. Built with Gradio and deployed on Hugging Face Spaces.
Features
- Sentiment Analysis: Predicts sentiment on a 1 to 5-star scale.
- Multilingual Support: Works with multiple languages.
- User-Friendly Interface: Simple input and output for quick analysis.
- No Installation Required: Use it directly online.
Access the App
Try it here:
https://huggingface.co/spaces/RawadAlghamdi/sentiment-analyzer
Running Locally (Optional)
To run the app on your machine:
- Install dependencies:
pip install gradio transformers torch
- Run the application:
python app.py
- Open the provided local URL in your browser.
How It Works
- Enter a sentence or paragraph into the input box.
- Click submit to analyze the sentiment.
- The predicted sentiment (1 to 5 stars) appears in the output box.
Customization
- Replace the model in
pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
to test other sentiment analysis models. - Modify
examples
to add more test inputs.
License
Licensed under the Apache License 2.0. See LICENSE for details.