Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Perfect for getting started with AI engineering. These projects focus on single
- [**Qwen3 Thinking UI**](./qwen3-thinking-ui) - Thinking UI with Qwen3:4B and Streamlit
- [**GPT-OSS Thinking UI**](./gpt-oss-thinking-ui) - GPT-OSS with reasoning visualization
- [**Streaming AI Chatbot**](./streaming-ai-chatbot) - Real-time AI streaming with Motia framework
- [**YouTube Comment Classifier**](./youtube-zero-shot-classifier) - classify comments from YouTube video into custom labels using facebook/bart-large-mnli

#### Basic RAG
- [**Simple RAG Workflow**](./simple-rag-workflow) - Basic RAG with LlamaIndex and Ollama
Expand Down
21 changes: 21 additions & 0 deletions youtube-zero-shot-classifier/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Joise S Arakkal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
40 changes: 40 additions & 0 deletions youtube-zero-shot-classifier/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 🎯 YouTube Comment Classifier using Zero-Shot Learning

Analyze and classify top comments from any YouTube video into custom intent-style labels using 🤗 Hugging Face's `facebook/bart-large-mnli`. Built with a clean Gradio UI, and deployed on both **Google Colab** and **Hugging Face Spaces**.

---

## 🔍 Features

- 🎥 Accepts any YouTube video URL
- 🧠 Uses Zero-Shot Learning to classify comments into:
- `Question`, `Appreciation`, `Complaint`, `Suggestion`, `Joke`, `Spam`, `Toxic`, `Story`
- 📈 Displays results dynamically as comments are processed
- 🛡️ API Key is securely handled (in Colab) or via Hugging Face secrets
- 🌐 Accessible via Colab + Hugging Face Spaces

---

## 🚀 Try It Now

[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1LY-mCCn-w1g25gTGH2tQyBGqAz_npZ9C?usp=sharing)
 
[![Hugging Face Spaces](https://img.shields.io/badge/Hugging%20Face-Space-blue?logo=huggingface&style=flat-square)](https://huggingface.co/spaces/joise-s-arakkal/ZeroShotTube)

---

## 🧱 Tech Stack

[![Transformers](https://img.shields.io/badge/HuggingFace-Transformers-orange?logo=huggingface)](https://huggingface.co/transformers)
 
[![Gradio](https://img.shields.io/badge/Gradio-UI-blue?logo=Gradio&logoColor=white&style=flat-square)](https://gradio.app/)
 
[![Google Colab](https://img.shields.io/badge/Google%20Colab-Notebook-F9AB00?logo=Google%20Colab&logoColor=white&style=flat-square)](https://colab.research.google.com/)
 
[![YouTube API](https://img.shields.io/badge/YouTube%20Data%20API-v3-red?logo=YouTube&logoColor=white&style=flat-square)](https://developers.google.com/youtube/v3)
 
[![Hugging Face Spaces](https://img.shields.io/badge/Spaces-HuggingFace-blue?logo=huggingface&style=flat-square)](https://huggingface.co/spaces)

---

Made with ❤️ using Hugging Face, Transformers, and Gradio
Loading