A web application that utilizes machine learning to detect fake news articles.
- User Input: Submit news articles for analysis.
- Real-time Prediction: Get instant results indicating whether the news is "Fake" or "True".
- User-Friendly Interface: Interactive and easy-to-use web design.
- Docker Support: Deploy the application seamlessly using Docker.
- Machine Learning Model: Uses a pre-trained model to detect fake news.
git clone https://github.com/pq36/Fake_news_detector.git
cd Fake_news_detectorpython3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`pip install -r requirements.txtpython app.pyOpen your browser and navigate to:
👉 http://127.0.0.1:8080/
- Paste the news article text into the provided text area.
- Click the "Check News" button to analyze.
- The application will display whether the submitted news is "Fake" or "True".
To deploy the application using Docker:
docker build -t fake_news_detector .docker run -d -p 8080:80 --name flask-container fake_news_detectorFake_news_detector/
│-- app.py # Main Flask application
│-- model.pkl # Pre-trained ML model for fake news detection
│-- requirements.txt # List of dependencies
│-- Dockerfile # Docker build instructions
│-- templates/ # HTML templates for UI
│-- static/ # Static files (CSS, JS, images)
Contributions are welcome! If you'd like to improve this project:
- Fork the repository.
- Create a new branch.
- Make your changes and submit a pull request.
For any questions or suggestions, feel free to open an issue.
🚀 Happy Coding!