Skip to content

Trained a fake-news detector machine learning model based on TF-IDF vectorization and Naive Bayes classifiers. Uses flask as backend and compatible UI to verify news and post on blogging website.

Notifications You must be signed in to change notification settings

krishanu-2001/flaskFakeNewsDetectorApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flaskFakeNewsDetectorapp

it detects fake news using machine leaning.

steps to set up

  1. flaskFakeNewsApp.py 
        flask file  
  2. grub3.py 
        ml file
  3. _static:_ 
        1.css file
  4. _templates:_
        1.index.html
        2.update.html
        3.ml.html
        * (_name_) = directory *

libraries required

  import matplotlib.pyplot as plt
  import tensorflow.compat.v1 as tf
  tf.disable_v2_behavior()
  import re
  import random
  import numpy as np
  import pandas as pd
  import sklearn as skd

please use custom dataset

  format:
  list of 2 strings
  eg,
    [["news_1",  '1'],  [ "news_2",  '0'] ]

About

Trained a fake-news detector machine learning model based on TF-IDF vectorization and Naive Bayes classifiers. Uses flask as backend and compatible UI to verify news and post on blogging website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published