theyashkhatri/AuthenticPlagAI
0
๐ก๏ธ AuthenticPlagAI
An AI-Driven Plagiarism Detection and Content Authentication System with Humanization Module
A clean, single-file Streamlit app to detect plagiarism in any text or document and rewrite AI-generated content to sound naturally human.
๐ Quick Start
# 1. Install dependencies
pip install -r requirements.txt
# 2. Run the app
streamlit run app.pyOpens at http://localhost:8501
โจ Features
๐ Check Text
Paste any essay, article, or content directly into the text box and click Check Plagiarism to instantly get a plagiarism score with a full breakdown.
๐ Check File
Upload a .txt, .pdf, or .docx file. A live preview of the document appears before you run the check.
โจ AI Humaniser
Paste AI-generated or flagged text and rewrite it to sound authentically human using Google Gemini.
- 5 tone options: Natural, Academic, Professional, Creative, Plain
- 3 intensity levels: Light Touch, Moderate, Heavy Rewrite
- Side-by-side original vs humanised view
- Download the result as
.txt
๐ How Plagiarism Scoring Works
The score is computed using three internal signals:
๐ ๏ธ Tech Stack
๐ Gemini API Key (Humaniser only)
The plagiarism checker works without any API key. The Humaniser tab requires a free Google Gemini API key:
- Go to aistudio.google.com
- Click Get API Key โ Create API Key
- Paste it into the sidebar of the app
Free tier: 15 requests/min, 1M tokens/day โ no credit card needed.
๐ฆ Requirements
streamlit>=1.32.0
scikit-learn>=1.4.0
pandas>=2.0.0
google-generativeai>=0.7.0
pdfplumber>=0.10.0
python-docx>=1.1.0โ๏ธ Deploy to Hugging Face Spaces
- Create a new Space at huggingface.co/spaces
- Select Streamlit as the SDK
- Upload
app.py,requirements.txt, andREADME.md - The Space builds and deploys automatically
๐ Project Structure
AuthenticPlagAI/
โโโ app.py # Entire application (single file)
โโโ requirements.txt # Python dependencies
โโโ README.md # This file๐ License
MIT License โ free to use, modify, and distribute.
