A full-stack application designed to combat digital misinformation. Intellex uses a multi-layered AI system, powered by Google's Gemini API, to analyze news articles, images, and videos for fakes, providing real-time, fact-checked verdicts.
HTML
0
13 commits
updated Oct 10, 2025
Intellex is a hybrid AI system that helps you assess the credibility of text, images, videos, and news articles. It combines local ML models (Hugging Face Transformers) with an optional Gemini API reasoning layer for stronger, explainable verdicts.
Main/ that talks to a local APItext_detector/app.pyMain/app.htmlroberta-base-openai-detector via Transformers classifies text as Human vs AI.Models used (download automatically on first run):
roberta-base-openai-detectorprithivMLmods/Deep-Fake-Detector-v2-Modeldima806/deepfake_vs_real_image_detectionIntellex/
├─ Main/ # Frontend (open app.html)
│ ├─ index.html
│ └─ app.html
├─ text_detector/ # Flask backend
│ ├─ app.py # API server (run me)
│ └─ detector.py # Text-only detector helper
├─ data/ # (optional) assets/data
├─ srt/ # (optional)
├─ test/ # sample images
│ ├─ fake.jpg
│ └─ real.jpg
└─ requirements.txt
If PyTorch installation fails via pip, follow the official PyTorch install guide for your OS/CPU/GPU.
# From the repo root
py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txt
.env file at the repo root based on .env.example, or set an env var for the session:$env:GEMINI_API_KEY = "your_api_key_here"
python .\text_detector\app.py
The API listens on http://127.0.0.1:5000.
Main/app.html in your browser, orMain folder locally (helps with assets and relative paths):# Option A: Python simple server (serve Main/ at http://127.0.0.1:5500)
python -m http.server 5500 -d .\Main
Then browse to http://127.0.0.1:5500/app.html.
Base URL: http://127.0.0.1:5000
POST /detect — analyze text
{ "text": "..." }{ type: "text", analysis: "Human Written" | "AI Generated", ai_prob, human_prob }POST /detect-image — analyze an image file
file: <image>{ type: "image", summary, is_ai, confidence }POST /detect-video — analyze a video file (samples up to 15 frames)
file: <video>{ type: "video", summary, is_ai, confidence }POST /detect-url — analyze an image URL or a news/article URL
{ "url": "https://..." }{
"type": "url_analysis",
"title": "<the url>",
"summary": "...",
"verdict": "Likely Credible | Potentially Misleading | Highly Suspect",
"red_flags": ["..."],
"sources": [{"title": "...", "uri": "..."}]
}
/detect-url requires GEMINI_API_KEY. Without it, you’ll get an error for article analysis.Create a .env file in the repo root (or set env vars in your shell):
GEMINI_API_KEY=your_api_key_here
/detect-url article analysis is unavailablepip install torch fails.http://127.0.0.1:5000 and reachable.GEMINI_API_KEY is configured and valid; some responses may be rate-limited.This repository is provided as-is for research and educational purposes. Add your preferred license if you plan to distribute.
A full-stack application designed to combat digital misinformation. Intellex uses a multi-layered AI system, powered by Google's Gemini API, to analyze news articles, images, and videos for fakes, providing real-time, fact-checked verdicts.
HTML
0
13 commits
updated Oct 10, 2025
Intellex is a hybrid AI system that helps you assess the credibility of text, images, videos, and news articles. It combines local ML models (Hugging Face Transformers) with an optional Gemini API reasoning layer for stronger, explainable verdicts.
Main/ that talks to a local APItext_detector/app.pyMain/app.htmlroberta-base-openai-detector via Transformers classifies text as Human vs AI.Models used (download automatically on first run):
roberta-base-openai-detectorprithivMLmods/Deep-Fake-Detector-v2-Modeldima806/deepfake_vs_real_image_detectionIntellex/
├─ Main/ # Frontend (open app.html)
│ ├─ index.html
│ └─ app.html
├─ text_detector/ # Flask backend
│ ├─ app.py # API server (run me)
│ └─ detector.py # Text-only detector helper
├─ data/ # (optional) assets/data
├─ srt/ # (optional)
├─ test/ # sample images
│ ├─ fake.jpg
│ └─ real.jpg
└─ requirements.txt
If PyTorch installation fails via pip, follow the official PyTorch install guide for your OS/CPU/GPU.
# From the repo root
py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txt
.env file at the repo root based on .env.example, or set an env var for the session:$env:GEMINI_API_KEY = "your_api_key_here"
python .\text_detector\app.py
The API listens on http://127.0.0.1:5000.
Main/app.html in your browser, orMain folder locally (helps with assets and relative paths):# Option A: Python simple server (serve Main/ at http://127.0.0.1:5500)
python -m http.server 5500 -d .\Main
Then browse to http://127.0.0.1:5500/app.html.
Base URL: http://127.0.0.1:5000
POST /detect — analyze text
{ "text": "..." }{ type: "text", analysis: "Human Written" | "AI Generated", ai_prob, human_prob }POST /detect-image — analyze an image file
file: <image>{ type: "image", summary, is_ai, confidence }POST /detect-video — analyze a video file (samples up to 15 frames)
file: <video>{ type: "video", summary, is_ai, confidence }POST /detect-url — analyze an image URL or a news/article URL
{ "url": "https://..." }{
"type": "url_analysis",
"title": "<the url>",
"summary": "...",
"verdict": "Likely Credible | Potentially Misleading | Highly Suspect",
"red_flags": ["..."],
"sources": [{"title": "...", "uri": "..."}]
}
/detect-url requires GEMINI_API_KEY. Without it, you’ll get an error for article analysis.Create a .env file in the repo root (or set env vars in your shell):
GEMINI_API_KEY=your_api_key_here
/detect-url article analysis is unavailablepip install torch fails.http://127.0.0.1:5000 and reachable.GEMINI_API_KEY is configured and valid; some responses may be rate-limited.This repository is provided as-is for research and educational purposes. Add your preferred license if you plan to distribute.