VeriWise is a full-stack web application designed to combat misinformation by detecting manipulated media (such as DeepFakes and AI-generated images) and verifying the factuality of textual claims. It integrates a Python and FastAPI backend for AI-powered analysis with a modern Next.js frontend for a seamless user experience.
The application follows a client-server architecture:
/chat page for users to upload files and submit text for analysis./api/analyze endpoint. This endpoint receives multimodal input, orchestrates the analysis by running different modules concurrently, and returns a structured JSON response.AI_Image.py & Manipulated.py: Handle AI-generated and manipulated image detection.Deep_video.py: Performs comprehensive deepfake analysis on videos, including audio.fact_verify.py & factcheck/: A sophisticated fact-checking pipeline that leverages the Gemini and Serper APIs for claim decomposition, evidence retrieval, and verification.biasness.py: Detects bias in text.To run the backend FastAPI server, follow these steps:
cd backend
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
pip install -r requirements.txt
# Create a .env file in the `backend` directory and add your API keys:
# GEMINI_API_KEY=YOUR_GEMINI_KEY
# GEMINI_API_KEY_MEDIA=YOUR_GEMINI_KEY_FOR_MEDIA_PROCESSING
# SERPER_API_KEY=YOUR_SERPER_KEY
# You can add up to 5 Gemini keys (GEMINI_API_KEY_2, etc.) for parallel processing.
uvicorn main:app --reload
The backend will be running at http://localhost:8000.
To run the Next.js frontend, open a new terminal and follow these steps:
cd frontend
npm install
npm run dev
The frontend will be accessible at http://localhost:3000.
http://localhost:3000.http://localhost:3000/chat.Enter or click the Send button to submit your content for analysis.The repository includes sample video files for testing the deepfake detection capabilities. You can find them in the backend/DeepFake/Test_data/ directory.
VeriWise is a full-stack web application designed to combat misinformation by detecting manipulated media (such as DeepFakes and AI-generated images) and verifying the factuality of textual claims. It integrates a Python and FastAPI backend for AI-powered analysis with a modern Next.js frontend for a seamless user experience.
The application follows a client-server architecture:
/chat page for users to upload files and submit text for analysis./api/analyze endpoint. This endpoint receives multimodal input, orchestrates the analysis by running different modules concurrently, and returns a structured JSON response.AI_Image.py & Manipulated.py: Handle AI-generated and manipulated image detection.Deep_video.py: Performs comprehensive deepfake analysis on videos, including audio.fact_verify.py & factcheck/: A sophisticated fact-checking pipeline that leverages the Gemini and Serper APIs for claim decomposition, evidence retrieval, and verification.biasness.py: Detects bias in text.To run the backend FastAPI server, follow these steps:
cd backend
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
pip install -r requirements.txt
# Create a .env file in the `backend` directory and add your API keys:
# GEMINI_API_KEY=YOUR_GEMINI_KEY
# GEMINI_API_KEY_MEDIA=YOUR_GEMINI_KEY_FOR_MEDIA_PROCESSING
# SERPER_API_KEY=YOUR_SERPER_KEY
# You can add up to 5 Gemini keys (GEMINI_API_KEY_2, etc.) for parallel processing.
uvicorn main:app --reload
The backend will be running at http://localhost:8000.
To run the Next.js frontend, open a new terminal and follow these steps:
cd frontend
npm install
npm run dev
The frontend will be accessible at http://localhost:3000.
http://localhost:3000.http://localhost:3000/chat.Enter or click the Send button to submit your content for analysis.The repository includes sample video files for testing the deepfake detection capabilities. You can find them in the backend/DeepFake/Test_data/ directory.