Spaces:
Sleeping
Sleeping
| # 📝 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. | |
| --- | |