File size: 2,297 Bytes
8f58e3c
 
 
 
 
 
 
 
 
 
 
 
c06fb9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8f58e3c
1699974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8f58e3c
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
---
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