Spaces:
Running
on
Zero
Running
on
Zero
A newer version of the Gradio SDK is available:
5.49.1
metadata
title: DeceptivePatternDetector
emoji: π¨
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.46.0
app_file: app.py
pinned: false
license: cc-by-nc-4.0
π Deceptive Pattern Detector
An AI-powered tool that analyzes website screenshots to detect potentially deceptive design patterns (also known as "dark patterns").
π Features
- Image Upload: Upload screenshots of websites for analysis
- OCR Analysis: Extracts text and UI elements from images
- Element Detection: Identifies buttons, checkboxes, and other interactive elements
- AI Analysis: Uses Google Gemini AI to classify potential deceptive patterns
- Pattern Categories: Detects various types including:
- Confirm-shaming
- Urgency manipulation
- Scarcity tactics
- Misdirection
- Privacy violations
- And more...
π How to Use
- Upload Image: Take a screenshot of a website and upload it
- API Key: Enter your Google Gemini API key (Get one here)
- Analyze: Click the analyze button and wait for results
- Review: Examine the detected patterns and explanations
π§ Requirements
- Google Gemini API key for AI analysis
- Google Cloud Vision API credentials (optional, for enhanced OCR)
π οΈ Technical Details
This tool combines:
- Computer Vision: For UI element detection
- OCR: For text extraction using Google Cloud Vision
- AI Analysis: Using Google Gemini for pattern classification
- Rule-based Fallbacks: For basic detection when AI is unavailable
β οΈ Disclaimer
This tool uses AI analysis and may not catch all deceptive patterns or may flag legitimate design elements. The results should be used as a supplementary guide and not as a definitive assessment.
ποΈ Architecture
- Frontend: Gradio interface
- Backend: Python with simplified computer vision
- AI: Google Gemini for pattern analysis
- Deployment: HuggingFace Spaces compatible
π License
MIT License - See LICENSE file for details.