|
|
--- |
|
|
title: Multimodel Summarizer |
|
|
emoji: π¦ |
|
|
colorFrom: purple |
|
|
colorTo: red |
|
|
sdk: gradio |
|
|
sdk_version: 5.49.1 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: mit |
|
|
short_description: Compare summaries from multiple models and see the sentiment |
|
|
--- |
|
|
# Multi-Model Text Summarizer + Sentiment Analyzer |
|
|
|
|
|
π **Showcase Project by Bharathi212** |
|
|
|
|
|
This Hugging Face Space demonstrates a **multi-model text summarization app** with sentiment analysis. It compares the outputs of two popular NLP models: |
|
|
|
|
|
- **BART Large CNN** (`facebook/bart-large-cnn`) |
|
|
- **T5 Small** (`t5-small`) |
|
|
|
|
|
Additionally, each generated summary is analyzed for sentiment using a pre-trained Hugging Face pipeline. |
|
|
|
|
|
--- |
|
|
|
|
|
## Features |
|
|
|
|
|
- Compare summaries from **multiple models** side by side |
|
|
- Analyze the **sentiment of each summary** |
|
|
- Simple and interactive **Gradio interface** |
|
|
- Ready to **deploy or integrate into larger NLP projects** |
|
|
|
|
|
--- |
|
|
|
|
|
## How to Use |
|
|
|
|
|
1. Paste your text in the input box. |
|
|
2. Click **Submit / Run**. |
|
|
3. View the generated summaries and their sentiment scores. |
|
|
|
|
|
--- |
|
|
|
|
|
## Technology Stack |
|
|
|
|
|
- Python 3 |
|
|
- Hugging Face Transformers (`facebook/bart-large-cnn`, `t5-small`) |
|
|
- Hugging Face Sentiment Analysis Pipeline |
|
|
- Gradio for interactive UI |
|
|
|
|
|
|
|
|
**Outputs:** |
|
|
|
|
|
| Model | Summary | Sentiment | |
|
|
|-----------------|--------------------------------------|----------------| |
|
|
| BART Large CNN | AI is transforming the world in many areas including healthcare and education. | POSITIVE (0.99) | |
|
|
| T5 Small | AI tools help humans solve problems faster and efficiently. | POSITIVE (0.98) | |
|
|
|
|
|
--- |
|
|
|
|
|
## Deployment |
|
|
|
|
|
- Hosted on [Hugging Face Spaces](https://huggingface.co/spaces/bharathi212/Multimodel_summarizer) |
|
|
- CPU-only deployment (default free tier) |
|
|
- GPU upgrade optional for faster inference |
|
|
|
|
|
--- |
|
|
|
|
|
## License |
|
|
|
|
|
This project is licensed under the **MIT License**. |
|
|
|
|
|
--- |
|
|
|
|
|
## Author |
|
|
|
|
|
**Bharathi212** |
|
|
- Hugging Face profile: [https://huggingface.co/bharathi212](https://huggingface.co/bharathi212) |
|
|
- Certificate: Completed **Hugging Face Fundamentals of LLMs Course** |
|
|
|
|
|
--- |
|
|
|
|
|
β¨ Try it now and see how different models summarize the same text! |
|
|
|
|
|
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |
|
|
|