File size: 1,151 Bytes
6ad2ef0
 
 
 
 
 
da65ad5
05653b8
6ad2ef0
 
 
 
 
 
8a9d09e
a0cbbad
e9b5614
 
 
a0cbbad
e9b5614
a0cbbad
e9b5614
 
 
 
 
 
 
 
 
 
 
 
 
 
a0cbbad
e9b5614
 
 
 
 
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
---
title: SentimentAnalyzer
emoji: 🎭
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: "4.40.0"
python_version: "3.10"
app_file: app.py
pinned: false
license: mit
---

# Sentiment Analyzer

A full featured sentiment analysis app built with HuggingFace Transformers and Gradio.

## Features
- ✅ Single sentence analysis with confidence score + response time
- ✅ Batch analysis up to 20 sentences at once with summary
- ✅ Clean tabbed interface
- ✅ Built in example sentences

## Model
| Detail | Info |
| Model | distilbert-base-uncased-finetuned-sst-2-english |
| Task | Binary Sentiment Classification (POSITIVE / NEGATIVE) |
| Accuracy | ~91% on SST-2 benchmark |
| Source | HuggingFace Transformers |

## Tech Stack
- HuggingFace Transformers (DistilBERT)
- Gradio 4.x
- Python 3.10+

## Background
Originally built as a full stack project with Flask REST API + React frontend.  
This Space showcases the core ML functionality with an interactive Gradio interface.

## Developer
**Sawda** · BS Computer Engineering Technology · IIU Islamabad  
[GitHub](https://github.com/Sawdah12) · [LinkedIn](https://linkedin.com/in/sawda)