Spaces:
Sleeping
Sleeping
Commit History
-
feat: revamp with LLM-powered code analysis
NEW FEATURES: - Replaced pattern-based bug detection with Claude/GPT analysis - LLM understands code semantically, finds complex issues - Fallback to pattern-based detection if LLM fails or API keys missing - Works on HF Spaces with ANTHROPIC_API_KEY or OPENAI_API_KEY env vars - Smarter bug detection: SQL injection, XSS, race conditions, etc. - Confidence scores from LLM (0.75-0.99 range) - All bugs returned with category, severity, and fix suggestions BACKWARDS COMPATIBLE: - Single entry point: app.py imports from main.py (HF Space safe) - Same API response format - Health and stats endpoints unchanged - Pattern-based fallback ensures it works without API keys TESTED: - SQL injection detection: confidence 0.95 - Clean code detection: no false positives - Test script: test_llm_api.py8b06b9c