Nepali Fake News Detector πŸ‡³πŸ‡΅

An AI-powered web application that detects whether a news article is REAL or FAKE, designed for Nepali and English content.


fake news detector (2)

🌐 Live Demo

πŸ‘‰Β https://demo.purwanews.com/


πŸš€ Features

  • Fake / Real prediction
  • Confidence score
  • Nepali + English support
  • Modern UI
  • Real-time API

🧠 How it works

User Input β†’ API β†’ ML Model β†’ Prediction

  • TF-IDF Vectorizer
  • Logistic Regression
  • Returns prediction + confidence

πŸ“Š Dataset Used

The dataset used in this project is sourced from Kaggle:

πŸ‘‰ https://www.kaggle.com/ashoknepal/datasets


🧠 Dataset Description

  • Collection of Nepali news articles
  • Includes labeled data for fake and real news
  • Contains fields such as:
    • news_contextΒ (news content)
    • labelΒ (0 = fake, 1 = real)

βš™οΈ Data Processing

To prepare the dataset for training:

  • Multiple dataset files were combined
  • Only required columns were used:
    • news_context
    • label
  • Removed:
    • null values
    • empty text
    • duplicate entries
  • Data was shuffled for better training

πŸ“Œ Final Dataset Format

news_contextlabel
News text...0
News text...1

⚠️ Note

  • Dataset quality directly affects model performance
  • Results may vary on real-world news inputs

πŸ›  Tech Stack

  • Python (Flask)
  • Scikit-learn
  • HTML, CSS, JavaScript
  • cPanel Deployment

πŸ“‚ Project Structure

fake-news-api/ β”‚ β”œβ”€β”€ api.py β”œβ”€β”€ passenger_wsgi.py β”œβ”€β”€ train_model.py β”œβ”€β”€ model.pkl β”œβ”€β”€ vectorizer.pkl


πŸ“Š Model Accuracy

  • Accuracy: ~96%
  • Balanced performance on real and fake news

Screenshot

screenshot 2026 04 27 at 20.09.13

⚠️ Disclaimer

This system provides AI-based predictions and may not always be 100% accurate.


πŸ‘¨β€πŸ’» Author

Santosh Poudel

Leave a Comment

Your email address will not be published. Required fields are marked *