Skip to content

Dev-axay18/Truth_Sense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Truth Sense Banner

🧠 TruthSense - AI-Powered News Verification Platform 🧠

Empowering people with truth, one article at a time.
A futuristic platform to verify, analyze, and understand the authenticity of the news you consume.


πŸ“– Introduction

TruthSense is an AI-driven news verification platform built for the modern web. With misinformation spreading like wildfire, our platform uses state-of-the-art AI to detect whether the content you're reading is genuine or misleading. Whether it's a headline, full article, or just a URLβ€”TruthSense gets to work.

πŸš€ Built for speed. ⚑ Powered by OpenAI. πŸ’‘ Designed for truth.


✨ Features

  • βœ… Verify headlines, full articles, or URLs using AI
  • πŸ€– Smart classification: True / Fake / Unverified
  • πŸ“Š Confidence scoring and model transparency
  • 🌍 Detects country of origin
  • 🧾 Maintains verification history
  • πŸ’‘ Smooth and responsive futuristic UI

πŸ› οΈ Tech Stack

πŸ”Ή Frontend

  • βš›οΈ React.js
  • πŸ’¨ Tailwind CSS
  • πŸ”— Axios for API calls
  • πŸ”” React Toastify for toast notifications

πŸ”Ή Backend

  • ⚑ FastAPI (Python)
  • 🀯 OpenAI API integration
  • πŸ—ƒοΈ SQLite for database

πŸ§ͺ Screenshot

UI Interface

Truth Sense Banner

🧰 Setup Instructions

Ensure you have Node.js, Python 3.8+, and a valid OpenAI API Key.


πŸ”§ Backend Setup

πŸ“ Step 1: Navigate to the backend directory

cd backend

πŸ§ͺ Step 2: Create a virtual environment

python -m venv venv

πŸŒ€ Step 3: Activate the virtual environment

# On Windows:
venv\Scripts\activate

# On Linux/macOS:
source venv/bin/activate

πŸ“¦ Step 4: Install Python dependencies

pip install -r requirements.txt

πŸ” Step 5: Configure OpenAI API

# Create a .env file in the backend directory and add:
OPENAI_API_KEY=your_api_key_here

πŸš€ Step 6: Run the backend server

uvicorn main:app --reload

🎨 Frontend Setup

πŸ“ Step 1: Navigate to the frontend directory

cd frontend

πŸ“¦ Step 2: Install dependencies

npm install

πŸš€ Step 3: Start development server

npm run dev

πŸ”— The frontend will launch at http://localhost:3000


πŸš€ Usage

  1. πŸ”“ Open the app in your browser.
  2. ✍️ Enter a headline, full article text, or URL.
  3. πŸ” Click "Analyze News".
  4. πŸ“‹ Get real-time results: classification, confidence, source origin, and more.
  5. πŸ•“ Check your history anytime.

πŸ’‘ Contributing

We welcome your ideas and improvements! Please fork the repo and submit a pull request πŸš€

πŸ” Fork and Clone

git clone https://github.com/Dev-axay18/Truth_Sense.git

🌿 Create a New Branch

git checkout -b feature-branch-name

πŸ’Ύ Stage and Commit Changes

git add .
git commit -m "Added new feature"

πŸš€ Push Changes

git push origin feature-branch-name

πŸ“₯ Create Pull Request

Submit a PR from GitHub UI


πŸ“œ License

This project is licensed under the MIT License.


Made with ❀️ by Akshay Kale | Powered by AI

About

TruthSense : AI-Powered News Verification Platform A modern web app that uses AI to verify news authenticity. Features include news analysis, classification, confidence scoring, and country detection. Built with React, FastAPI, and OpenAI integration.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors