Skip to content

mdabir1203/Bangla-Fact-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fact Checker Application

This is a Fact Checker application designed to analyze and verify the accuracy of given text or image content. The application uses the Perplexity API to provide accurate information and highlight any misinformation.

Features

  • Analyze and verify claims made in the content
  • Provide accurate information with sources
  • Highlight any misinformation
  • Rate the overall accuracy on a scale of 1-10
  • Strictly output in Bengali language for Bangladeshi culture, people, and demographics

Requirements

  • Python 3.8 or higher
  • FastAPI
  • Uvicorn
  • Requests
  • Jinja2

Configuration

The application requires the following environment variables to be set:

  • [PERPLEXITY_API_KEY] Your Perplexity API key

These can be set in a .env file in the root directory.

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install the dependencies:

    pip install -r requirements.txt
  3. Set up the environment variables in a .env file:

    PERPLEXITY_API_KEY=your_api_key_here

Running the Application

To run the application, use the following command:

uv run main.py

## Tech Stack

- **Backend Framework**: FastAPI
- **Server**: Uvicorn
- **Template Engine**: Jinja2
- **HTTP Client**: Requests
- **Language**: Python

# Demo Video 
Check how you can make yourself one here -> https://www.youtube.com/watch?v=lYZftYDFmGA

# License 
Feel free to modify in whatever usecase you have and more collaboration write me [email protected] / check my writings at medium.com/@md.abir1203