Spaces:
Sleeping
Sleeping
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
|