How srajeshwaran227-eng/ads-with-ai works
AuthentiGuard is a multimodal content-authenticity service: users submit documents, images, videos, or audio and receive modality-specific detection results. The Flask app registers four analysis routes; each route validates and temporarily stores its upload, invokes analysis, returns a JSON classification, and cleans up the file. Document analysis also extracts and cleans text before plagiarism and AI-text checks. The README describes a browser experience and all four capabilities, but the sampled evidence does not establish how the frontend calls the API. The detector implementations support demo mode and optional model-backed processing.
Main entry points: app.py Flask app · document_routes.py Document endpoint · file_handler.py Upload handling · image_routes.py Image endpoint
Components 19
Browser experience
- Home page
index.html - Upload page
upload.html - Results page
results.html - Browser client
script.js - Page styles
styles.css
Flask API
- Flask app
backend/app.py - Runtime config
backend/config.py - Document endpoint
backend/routes/document_routes.py - Image endpoint
backend/routes/image_routes.py - Video endpoint
backend/routes/video_routes.py - Audio endpoint
backend/routes/audio_routes.py
Detection services
- Plagiarism check
backend/services/plagiarism_service.py - AI text check
backend/services/text_ai_detector.py - Image detection
backend/services/image_detector.py - Video detection
backend/services/video_detector.py - Audio detection
backend/services/audio_detector.py
Shared processing
- Upload handling
backend/utils/file_handler.py - Text and media preprocessing
backend/utils/preprocessing.py
Other components
- User
Connections 18
- Flask app → Runtime config: loads settings
backend/app.py - Flask app → Document endpoint: registers route
backend/app.py - Flask app → Image endpoint: registers route
backend/app.py - Flask app → Video endpoint: registers route
backend/app.py - Flask app → Audio endpoint: registers route
backend/app.py - Document endpoint → Upload handling: saves and cleans
backend/routes/document_routes.py - Image endpoint → Upload handling: saves and cleans
backend/routes/image_routes.py - Video endpoint → Upload handling: saves and cleans
backend/routes/video_routes.py - Audio endpoint → Upload handling: saves and cleans
backend/routes/audio_routes.py - Document endpoint → Text and media preprocessing: extracts and cleans text
backend/routes/document_routes.py - Document endpoint → Plagiarism check: checks similarity
backend/routes/document_routes.py - Document endpoint → AI text check: checks AI text
backend/routes/document_routes.py - Image endpoint → Image detection: analyzes image
backend/routes/image_routes.py - Video endpoint → Video detection: analyzes video
backend/routes/video_routes.py - Audio endpoint → Audio detection: analyzes audio
backend/routes/audio_routes.py - Image detection → Text and media preprocessing: prepares image
backend/services/image_detector.py - Audio detection → Text and media preprocessing: builds spectrogram
backend/services/audio_detector.py - User → Upload page: submits media
README.md