sentiment-analyzer / README.md
vanhai123's picture
Update README.md
91edd2c verified
---
title: Sentiment Analyzer
emoji: 📊
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: false
---
# Sentiment Analysis App (Hugging Face Spaces)
Một ứng dụng đơn giản sử dụng mô hình có sẵn từ Hugging Face để phân tích cảm xúc (tích cực hoặc tiêu cực) của văn bản tiếng Anh.
## 🚀 Demo
🔗 Truy cập ứng dụng tại: [https://huggingface.co/spaces/<your-username>/<your-repo>](https://huggingface.co/spaces)
## 📌 Mô tả
Ứng dụng này sử dụng mô hình `distilbert-base-uncased-finetuned-sst-2-english` từ thư viện `transformers` để thực hiện phân tích cảm xúc.
- 📥 Nhập một câu văn bằng tiếng Anh.
- 📊 Hệ thống sẽ trả về nhãn cảm xúc: `POSITIVE` hoặc `NEGATIVE`, cùng với độ tin cậy (%).
## 🧰 Công nghệ sử dụng
- [🤗 Transformers](https://huggingface.co/transformers/)
- [Gradio](https://www.gradio.app/)
- [PyTorch](https://pytorch.org/)
## 📁 Cấu trúc thư mục
```
.
├── app.py # Code ứng dụng Gradio
├── requirements.txt # Các thư viện cần thiết
└── README.md # File mô tả dự án
```
## 📆 requirements.txt
```txt
transformers
torch
gradio
```
## 🛠 Cách chạy local (tùy chọn)
```bash
pip install -r requirements.txt
python app.py
```
## ✨ Giao diện
- Giao diện đơn giản bằng Gradio
- Có thể mở rộng để xử lý văn bản tiếng Việt hoặc tích hợp API