Karl Qiu
Switch to Qwen2.5-14B-Instruct from Qwen2.5-3B-Instruct
7912365
|
Raw History Blame Contribute Delete
1.5 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: Hybrid Comment Moderation
emoji: πŸ’¬
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.34.0
app_file: app.py
pinned: false
license: mit
tags:
  - content-moderation
  - hybrid-ai
  - distilbert
  - qwen
  - cs541

πŸ’¬ Hybrid Comment Moderation

CS541 AI Final Project β€” Stevens Institute of Technology

A two-stage content moderation pipeline that routes comments intelligently:

  1. Stage 1 β€” ML Classifier (DistilBERT, CPU, ~7 ms): handles confident predictions instantly.
  2. Stage 2 β€” LLM Reviewer (Qwen2.5-14B-Instruct, NF4, GPU, ~1–2 s): reviews only ambiguous comments.

Tabs

Tab Description
πŸ” Live Demo Type a comment, pick a strategy, see the verdict
πŸ“Š Evaluation Pre-computed metrics on 100 balanced Civil Comments samples
πŸ—οΈ Architecture Pipeline diagram and design rationale

Usage

  • ML-only works for everyone (CPU, no sign-in needed).
  • Hybrid and LLM-only require a free HuggingFace account for ZeroGPU access.
  • First LLM call loads the 14B model (~30–40 s); subsequent calls take ~1–2 s.

Reference