Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.19.0
title: ScamVerifierV6
emoji: 💻
colorFrom: red
colorTo: blue
sdk: gradio
sdk_version: 5.42.0
app_file: app.py
pinned: false
license: mit
short_description: Instantly detect and flag potential online scams
Scam-Verifier 🛡️
Protect yourself from phishing, spam, and scam messages with AI-powered analysis.
This web app allows users to paste suspicious messages, emails, or URLs and get a risk assessment, red flags, recommendations, and a ready-to-use report template.
The backend uses LangChain + OpenAI GPT for intelligent scam detection.
Features
AI-Powered Scam Detection Detects phishing, fake job offers, lottery scams, investment fraud, and other malicious messages.
Risk Scoring & Classification
- HIGH RISK
- MEDIUM RISK
- LOW RISK
- SAFE
Red Flags & Recommendations Lists specific warning signs and actionable steps to stay safe.
Report Template Generator Auto-generates a professional report to submit to authorities or platforms.
Example Messages Test with preloaded phishing, fake job, investment, and lottery scam examples.
Clean & Modern UI Fully responsive, mobile-friendly, with smooth interactions and copy-to-clipboard support.
How It Works
- User Input: Paste a suspicious message or provide a URL.
- AI Analysis: Backend uses GPT via LangChain to evaluate the message.
- Risk Assessment: Generates a risk score (0–100) and classification.
- Red Flags & Recommendations: Highlights suspicious elements and safety tips.
- Report Template: Provides a ready-to-use scam report template.
Installation
Note: Designed for deployment on Hugging Face Spaces, but can run locally with Flask.
- Clone the repository:
git clone <repo-url>
cd scam-signal-verifier
- Create a virtual environment and activate:
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
- Set your OpenAI API key:
export OPENAI_API_KEY="your_api_key" # Linux/Mac
set OPENAI_API_KEY="your_api_key" # Windows
- Run the app:
python app.py
- Open in browser:
http://localhost:7860
Usage
- Paste your suspicious message in the text area.
- Optionally, add a URL to check.
- Click Analyze for Scam Signals.
- View risk score, red flags, recommendations, and report template.
- Use the Copy Report Template button to quickly save it.
Deployment on Hugging Face Spaces
- Create a new Flask Space.
- Add
app.py,requirements.txt, andtemplates/index.html. - Set your OpenAI API key as a secret in HF Spaces.
- Deploy — the app is live automatically.
Example Messages
- Phishing Email: Fake account verification messages.
- Fake Job Offer: Work-from-home scams requesting upfront fees.
- Investment Scam: Unrealistic “double your money” offers.
- Lottery Scam: Fake lottery winnings asking for bank details.
Technologies Used
- Python 3.10+
- Flask – Backend web framework
- LangChain – AI orchestration
- OpenAI GPT – Scam detection model
- HTML/CSS/JS – Frontend UI
- FontAwesome – Icons
Security Notes
- All analysis happens server-side using OpenAI GPT.
- No user data is stored permanently.
- Always verify critical messages independently.
- This tool is advisory only, not legally binding.
License
MIT License © 2025
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference