Skip to content

crossd-site/perplexityhackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FactCheck AI - AI-Powered Fact-Checking Website

A modern web application that uses AI to fact-check statements and social media content. Built for the Perplexity Hackathon.

Features

  • Text Statement Fact-Checking: Enter any statement and get AI-powered fact-checking results
  • URL/Link Fact-Checking: Submit URLs from Twitter, Reddit, or other platforms for verification
  • Modern UI: Clean, responsive design with intuitive user experience
  • Real-time Analysis: Fast AI-powered analysis using Perplexity API
  • Source Citations: Detailed sources and analysis for transparency

Setup

  1. Install Dependencies:

    pip install -r requirements.txt
  2. Set up Environment Variables: Create a .env file with your Perplexity API key:

    PERPLEXITY_API_KEY="your_api_key_here"
    
  3. Run the Application:

    python3 app.py
  4. Access the Website: Open your browser and go to http://localhost:8000

Usage

Text Statements

  1. Click on "Text Statement" tab
  2. Enter the statement you want to fact-check
  3. Click "Fact Check Statement"
  4. View the AI analysis, verdict, and sources

URL/Link Fact-Checking

  1. Click on "URL/Link" tab
  2. Paste a URL from Twitter, Reddit, or other platforms
  3. Click "Fact Check URL"
  4. View the fact-checking results

API Endpoints

  • GET / - Main website interface
  • POST /fact-check - Fact-checking API endpoint
    • Body: {"text": "statement"} or {"url": "https://example.com"}
    • Returns: JSON with verdict, confidence, sources, and analysis

Project Structure

perplexityhackathon/
├── app.py                 # Flask backend application
├── templates/
│   └── index.html        # Main HTML template
├── static/
│   ├── css/
│   │   └── style.css     # Styling
│   └── js/
│       └── script.js     # Frontend JavaScript
├── .env                  # Environment variables
└── README.md            # This file

Technologies Used

  • Backend: Python Flask
  • AI Integration: Perplexity API
  • Frontend: HTML5, CSS3, JavaScript
  • Styling: Custom CSS with modern design principles

Hackathon Notes

This project demonstrates:

  • AI-powered fact-checking capabilities
  • Modern web development practices
  • Integration with external APIs
  • User-friendly interface design
  • Real-time data processing

Built for the Perplexity Hackathon to showcase the power of AI in combating misinformation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors