File size: 2,462 Bytes
7a50246
 
 
 
 
 
 
 
 
 
 
850ecf3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a50246
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
title: ReviewSummariser
emoji: πŸ‘€
colorFrom: pink
colorTo: red
sdk: gradio
sdk_version: 5.35.0
app_file: app.py
pinned: false
---


# πŸ“ Review Summariser GPT - Config 1

This is a Gradio-powered web application that uses a fine-tuned T5 model to summarize long product reviews into short, helpful summaries β€” and also predicts the overall sentiment (Positive/Negative) of the review.

- πŸ”§ Built with: [πŸ€— Transformers](https://huggingface.co/transformers), [Gradio](https://gradio.app), [Hugging Face Spaces](https://huggingface.co/spaces)
- 🧠 Model: Fine-tuned from `t5-small` on a custom review-summary dataset
- πŸ” Sentiment: Powered by `distilbert-base-uncased-finetuned-sst-2-english`

---

## πŸš€ Demo

πŸ‘‰ **Live on Hugging Face Spaces**:  
[πŸ”— Launch App](https://huggingface.co/spaces/Manish014/ReviewSummariser)

---

## πŸ“¦ Features

- βœ‚οΈ Summarizes long product reviews (e.g., from Amazon, Flipkart, etc.)
- πŸ“Š Predicts sentiment using a pre-trained classifier
- πŸ–ΌοΈ Clean Gradio UI with examples and collapsible "About" section
- ⚑ Optimized for GPU inference (but also works on CPU)

---

## πŸ§ͺ Example

**Input Review:**
> This product leaks water and smells like burnt plastic. Total waste of money.

**β†’ Summary:**
> Leaks and has a bad odor. Not recommended.

**β†’ Sentiment:**
> NEGATIVE (99.8%)

---

## πŸ“ Files in This Repo

| File              | Description                              |
|-------------------|------------------------------------------|
| `app.py`          | Main app file with Gradio Blocks UI      |
| `requirements.txt`| Python dependencies for the Space        |
| `thumbnail.png`   | Preview image used on Hugging Face Space |
| `README.md`       | This file                                |

---

## 🧠 Model Details

- **Base Model:** `t5-small`
- **Fine-Tuning:** Trained on a 1000-sample custom dataset (`review β†’ summary`)
- **Epochs:** 5  
- **Batch size:** 4  
- **Learning rate:** 5e-5  
- **Training Env:** Google Colab + Kaggle

---

## πŸ“„ License

This project is licensed under the [MIT License](LICENSE).

---

## πŸ™‹β€β™‚οΈ Author

**Manish Kumar Kondoju**  
🌐 [Hugging Face Profile](https://huggingface.co/Manish014)  
πŸ“« [email protected]

---

> ⭐ Star this repo if you found it useful β€” and feel free to fork, extend, or share!


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference