Spaces:
Build error
Build error
File size: 1,261 Bytes
c35a39b 3f278d3 c35a39b 63d0071 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | ---
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 |