Legal Hero is a smart, AI-powered investigator designed to help users identify scams, predatory clauses, and hidden traps in legal documents and contracts.
- 🕵️ Deep Scan: Analyzes entire PDF documents using the Gemini 3 Flash model.
- 🚩 Red Flag Detection: Automatically highlights high-risk language in.
- 🔢 Risk Scoring: Provides an instant safety rating from 1 to 10.
- 📝 Summary: Generates a "Bottom Line" summary for quick decision-making.
- ❄️ Snow Effect: Celebrates safe, low-risk documents!
- Upload: Drop your PDF contract into the uploader.
- Scan: Click "Start Deep Scan" and watch the AI Investigator work.
- Review: Check the color-coded report and summary for red flags.
- Python (Core Logic)
- Streamlit (User Interface)
- Google Gemini 3 API (AI Analysis)
- PyPDF (Document Processing)
If you want to run this locally:
- Clone the repo:
git clone (https://github.com/TheExterminator67/ScamScanner.git) - Install dependencies:
pip install -r requirements.txt - Set up your secrets: Add your
GEMINI_KEYto.streamlit/secrets.toml - Run the app:
streamlit run app.py
This tool is for educational and informational purposes only. It is not a substitute for professional legal advice. Always consult with a qualified lawyer before signing any contract.
Built with 💙 by a 16-year-old developer | 2025