Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 2.41 KB

README.md

File metadata and controls

79 lines (55 loc) · 2.41 KB

AI-Powered News Article Classifier

Description:

This web application classifies news articles into categories, tracks past classification requests, and provides users with insights into article categorization. It takes a news article URL as input, scrapes the article content, predicts its category using an AI model, stores the request and prediction in a database and displays the predicted category along with a history of past classification requests.

Preview

Table of Contents

Getting Started

Begin by setting up and running the project on your local machine.

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

  • Nodejs
  • Python

Installation

Follow these steps to get the project up and running:

  1. Server

      cd server
      pip install -r requirements.txt
      uvicorn main:app --reload
    
  2. Client

     cd client
     npm install
     npm run dev
    

Usage

To use the application:

  1. Navigate to the application's URL.
  2. Input a news article URL and submit the form.
  3. The application will scrape the article, predict its category, and display the result.
  4. Explore the history section to view past classification requests.

Features

  • News Classification: Automatically categorize news articles into predefined categories.
  • Interactive Web Interface: User-friendly React frontend for input and results.
  • Machine Learning: Utilizes AI models for article categorization.
  • Database Storage: Stores article requests and predictions for historical tracking.
  • History Viewer: Displays a history of past classification requests.

Architecture

License

This project is licensed under the MIT License. See the LICENSE file for details.