--- title: Sentiment Analysis Demo emoji: 🎭 colorFrom: blue colorTo: red sdk: gradio sdk_version: "5.16.0" app_file: app.py pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # Sentiment Analysis Demo with Gradio This is a simple sentiment analysis demo using Gradio and Hugging Face's transformers library. The application provides a web interface where users can input text and get sentiment analysis results. ## Features - Text sentiment analysis using Hugging Face's transformers - Real-time analysis with confidence scores - Simple and intuitive web interface ## Requirements - Python 3.7+ - gradio>=4.0.0 - transformers - torch ## Installation 1. Clone this repository 2. Install dependencies: ```bash pip install -r requirements.txt ``` ## Usage Run the application: ```bash python app.py ``` The web interface will be available at http://localhost:7860 ## Deployment on Hugging Face Spaces This demo can be easily deployed on Hugging Face Spaces: 1. Create a new Space on huggingface.co 2. Choose Gradio as the SDK 3. Upload these files to your Space: - app.py - requirements.txt The app will automatically deploy and be available online. ## License MIT