File size: 2,062 Bytes
8002a60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# 📝 Project Report: Multi-Task Language Application with Gradio

## ✨ Overview

In this project, I designed an interactive web application using **Gradio** with multiple tabs. Each tab showcases a different natural language processing (NLP) capability. The goal was to build a beginner-friendly, user-interactive language tool that demonstrates the power of large language models and voice tools.

---

## 💡 Tasks & Approaches

### 1️⃣ Sentiment Analysis
- **What it does:** Classifies input text as **positive** or **negative**, showing a confidence score.
- **Model used:** Default sentiment analysis model (`distilbert-base-uncased-finetuned-sst-2-english`) via Hugging Face.

---

### 2️⃣ Chatbot
- **What it does:** Simulates an interactive conversation with the user.
- **Model used:** `facebook/blenderbot-400M-distill`, a more advanced conversational model for more natural replies.

---

### 3️⃣ Summarization
- **What it does:** Generates a concise summary from long input text.
- **Model used:** `facebook/bart-large-cnn`, a powerful summarization model.

---

### 4️⃣ Text-to-Speech
- **What it does:** Converts text into a playable audio file.
- **Library used:** `gTTS` (Google Text-to-Speech).

---

## ⚙️ Technologies & Libraries

- **Gradio:** For creating the web-based interactive interface with tabs.
- **Transformers (Hugging Face):** For accessing pre-trained NLP models.
- **Torch:** Backend framework for the models.
- **gTTS:** For converting text to speech.

---

## 🚧 Challenges Faced

- Understanding how to integrate different models into one multi-tab interface.
- Managing various input/output types (text, audio) in Gradio.
- Using larger conversational models and handling token limits.

---

## ✅ Conclusion

This project helped me explore Gradio's Blocks system and integrate multiple language tasks into one easy-to-use interface. It demonstrates practical applications of sentiment analysis, conversational AI, summarization, and text-to-speech — all in a single, accessible web app.

---