--- 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) ๐Ÿ“ซ kondoju.m@northeastern.edu --- > โญ 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