TrueEye_Reports / README.md
DeepRat's picture
Update README.md
c336a9a verified
---
license: creativeml-openrail-m
title: TrueEye Reports
sdk: docker
emoji: πŸ‘
colorFrom: yellow
colorTo: purple
short_description: Analyze News - lies, bias, intentionality and more!
---
<p align="center">
<img src="static/banner.gif" alt="Banner TrueEye" width="100%">
</p>
# 🧿 TrueEye β€” Intelligent Media Literacy System
**TrueEye** is an AI-powered tool designed to analyze news articles and web content to detect narrative bias, identify the target audience, and reveal hidden intentions or manipulative rhetorical structures.
In other words, **it doesn’t just detect fake news** β€” it analyzes **who the content is written for and why**.
The system generates a detailed report to support media literacy, highlighting subtle signals embedded in the text.
---
## πŸš€ Demo
* 🌐 [Try TrueEye on Hugging Face Spaces](https://huggingface.co/spaces/DeepRat/TrueEye_Reports)
* πŸ–₯️ [Official project site](https://trueeye.deeprat.tech)
> Note: The demo requires internet access and may prompt you to log in to Hugging Face.
---
## 🧩 What Does TrueEye Do?
When given a news article URL, **TrueEye** performs **three consecutive analyses**:
### πŸ“Š Bias & Narrative Tone
* Detects narrative polarity (positive, negative, neutral).
* Identifies rhetorical strategies (fear, polarization, irony).
* Summarizes the content and flags questionable claims.
### 🎯 Audience Profiling
* Infers demographic and emotional profile of the target reader.
* Identifies values, beliefs, or cognitive biases being exploited.
### ⚠️ Intent & Risk Evaluation
* Detects manipulative discourse or symbolic violence.
* Highlights hidden agendas, information gaps, and potential societal risk.
> The report includes links to trustworthy sources for fact-checking.
---
## βš™οΈ Architecture Overview
**TrueEye** consists of three main components:
* 🧱 **Frontend**: Static web interface built with HTML, TailwindCSS, and JavaScript (`static/index.html`).
* 🧠 **Backend**: REST API written in Python using FastAPI (`main.py`).
* πŸ” **AI Orchestration**: LangFlow flow (`TrueEyeBeta.json`) powered by Claude models (Opus / Sonnet).
> The heavy analysis is performed by external LLMs through LangFlow API calls.
---
## πŸ“ Project Structure
```
TrueEye_v1/
β”œβ”€β”€ static/
β”‚ β”œβ”€β”€ index.html # Frontend UI
β”‚ └── te.png # Project logo
β”œβ”€β”€ main.py # FastAPI backend
β”œβ”€β”€ requirements.txt # Python dependencies
β”œβ”€β”€ Dockerfile # Deployment config (Hugging Face Spaces)
β”œβ”€β”€ TrueEyeBeta.json # LangFlow pipeline (AI logic)
```
---
## πŸ’» How to Run It Locally
### πŸ”§ Requirements
* βœ… Python **3.10+**
* βœ… Internet access (to connect with AI APIs)
* βœ… Claude API key or other compatible LLM provider
* βœ… LangFlow installed (`pip install langflow`)
> πŸ’‘ No GPU or specialized hardware needed β€” all heavy lifting is done remotely.
### πŸ§ͺ Installation Steps:
```bash
# 1. Clone the repository
git clone https://github.com/DeepRatAI/TrueEye_v1.git
cd TrueEye_v1
# 2. Install backend dependencies
pip install -r requirements.txt
# 3. Set the LangFlow API URL
export FLOW_API_URL="http://localhost:7860/predict" # Adjust to your LangFlow instance
# 4. Start the FastAPI backend
uvicorn main:app --reload
```
Once the server is running, open the file `static/index.html` in your browser.
Paste a news article URL, click "Analyze", and you'll receive an AI-generated report.
---
## πŸ“Œ Roadmap
| Version | Status | Description |
| -------- | ---------- | --------------------------------------------------------------- |
| βœ… v1.0 | Production | Full text analysis with explainable AI (current version) |
| πŸ”„ v2.0 | In design | "TrueEye Chat": interactive conversation with persistent memory |
| πŸ–ΌοΈ v3.0 | Planned | Multimodal reasoning (text + images/audio/video) |
| πŸ§ͺ v4.0 | Planned | Deepfake and synthetic content detection |
---
## πŸ“š Technologies Used
* **FastAPI** β€” Python web framework for REST APIs.
* **LangFlow** β€” Flow-based orchestration of LLMs and tools.
* **Claude (Opus / Sonnet)** β€” Large language models via Anthropic API.
* **TailwindCSS & JS** β€” Frontend interface styling and logic.
* **Docker** β€” Deployment (e.g. Hugging Face Spaces using provided Dockerfile).
---
## ✍️ Author
**Gonzalo Romero (DeepRat)**
AI, Software & Systems Engineer Β· Prompt Engineer Β· Full-Stack Developer
πŸ”— [Web](https://deeprat.tech) | [Hugging Face](https://huggingface.co/DeepRat) | [GitHub](https://github.com/DeepRatAI) | [LinkedIn](https://www.linkedin.com/in/deeprat) | [Medium](https://medium.com/@deeprat)
---
## 🧠 License
This project is licensed under the **Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)** license.
You are free to share and adapt the code **as long as you credit the author (DeepRat)** and **do not use it for commercial purposes without permission**.
> For commercial use or extended licensing, please contact: [info@deeprat.tech](mailto:info@deeprat.tech)
---