Spaces:
Sleeping
Sleeping
update readme
Browse files
README.md
CHANGED
|
@@ -9,4 +9,83 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
|
| 13 |
+
# π Review Summariser GPT - Config 1
|
| 14 |
+
|
| 15 |
+
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.
|
| 16 |
+
|
| 17 |
+
- π§ Built with: [π€ Transformers](https://huggingface.co/transformers), [Gradio](https://gradio.app), [Hugging Face Spaces](https://huggingface.co/spaces)
|
| 18 |
+
- π§ Model: Fine-tuned from `t5-small` on a custom review-summary dataset
|
| 19 |
+
- π Sentiment: Powered by `distilbert-base-uncased-finetuned-sst-2-english`
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## π Demo
|
| 24 |
+
|
| 25 |
+
π **Live on Hugging Face Spaces**:
|
| 26 |
+
[π Launch App](https://huggingface.co/spaces/Manish014/ReviewSummariser)
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## π¦ Features
|
| 31 |
+
|
| 32 |
+
- βοΈ Summarizes long product reviews (e.g., from Amazon, Flipkart, etc.)
|
| 33 |
+
- π Predicts sentiment using a pre-trained classifier
|
| 34 |
+
- πΌοΈ Clean Gradio UI with examples and collapsible "About" section
|
| 35 |
+
- β‘ Optimized for GPU inference (but also works on CPU)
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## π§ͺ Example
|
| 40 |
+
|
| 41 |
+
**Input Review:**
|
| 42 |
+
> This product leaks water and smells like burnt plastic. Total waste of money.
|
| 43 |
+
|
| 44 |
+
**β Summary:**
|
| 45 |
+
> Leaks and has a bad odor. Not recommended.
|
| 46 |
+
|
| 47 |
+
**β Sentiment:**
|
| 48 |
+
> NEGATIVE (99.8%)
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
## π Files in This Repo
|
| 53 |
+
|
| 54 |
+
| File | Description |
|
| 55 |
+
|-------------------|------------------------------------------|
|
| 56 |
+
| `app.py` | Main app file with Gradio Blocks UI |
|
| 57 |
+
| `requirements.txt`| Python dependencies for the Space |
|
| 58 |
+
| `thumbnail.png` | Preview image used on Hugging Face Space |
|
| 59 |
+
| `README.md` | This file |
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## π§ Model Details
|
| 64 |
+
|
| 65 |
+
- **Base Model:** `t5-small`
|
| 66 |
+
- **Fine-Tuning:** Trained on a 1000-sample custom dataset (`review β summary`)
|
| 67 |
+
- **Epochs:** 5
|
| 68 |
+
- **Batch size:** 4
|
| 69 |
+
- **Learning rate:** 5e-5
|
| 70 |
+
- **Training Env:** Google Colab + Kaggle
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## π License
|
| 75 |
+
|
| 76 |
+
This project is licensed under the [MIT License](LICENSE).
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## πββοΈ Author
|
| 81 |
+
|
| 82 |
+
**Manish Kumar Kondoju**
|
| 83 |
+
π [Hugging Face Profile](https://huggingface.co/Manish014)
|
| 84 |
+
π« [email protected]
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
> β Star this repo if you found it useful β and feel free to fork, extend, or share!
|
| 89 |
+
|
| 90 |
+
|
| 91 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|