A newer version of the Gradio SDK is available:
5.46.0
metadata
title: Credit Card Fraud Detection
emoji: 📊
colorFrom: red
colorTo: indigo
sdk: gradio
sdk_version: 5.33.1
app_file: app.py
pinned: true
tags:
- agent-demo-track
- python
short_description: Explainable & transparent AI credit card fraud detection
AI-Powered Fraud Detection Agent
agent-demo-track
Track: 3. Agentic Demo Showcase
Built For: Hugging Face Hackathon - Multimodal Challenge Playground (MCP)
Team: Osama Elmahdy, Muhammed Hisham
Overview
This Gradio-based AI Agent helps merchants, analysts, and fraud teams assess transaction legitimacy by combining a fraud detection model with reasoning capabilities powered by Hugging Face’s Nemotron-Research-Reasoning-Qwen-1.5B-GGUF
model.
Users input transaction details, and the system:
- Classifies the transaction as fraudulent or not.
- Uses LLM reasoning to explain the decision and provide recommendations for next steps (e.g., flag, approve, monitor).
AI Stack
Core Idea
First, check if a transaction is likely fraudulent using a traditional ML model trained on real-world features. Then, invoke an open LLM agent (via GGUF + llama-cpp) to explain and suggest human-friendly actions.
Components Used
- Fraud Detection:
- Custom-trained classifier (scikit-learn + LIME explanations)
- Reasoning & Recommendations:
- Hugging Face’s
Nemotron-Research-Reasoning-Qwen-1.5B-GGUF
running locally viallama-cpp-python
- Hugging Face’s
- UI:
- Gradio