Skip to content

A Streamlit app that classifies articles with URL or Text input into categories (e.g., politics, sports, technology, entertainment) and analyzes their tone (negative, positive, or neutral) using ChatGPT-Turbo API. In addition, the app summarizes the news article into different sections.

Notifications You must be signed in to change notification settings

Kaludii/Article-Classifier-and-Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Article Classifier and Summarizer

A Streamlit app that classifies articles with URL or Text input into categories (e.g., politics, sports, technology, entertainment) and analyzes their tone (negative, positive, or neutral) using ChatGPT-Turbo API. In addition, the app summarizes the news article into different sections and streams back in real time.

Web App

Click Here To View This App Online!

image

Features

  • Classify articles into categories (politics, sports, technology, entertainment)
  • Analyze the tone of the article (negative, positive, neutral)
  • Summarize news articles into different sections
  • Accepts text input or URL input for article analysis

Usage

  1. Enter your OpenAI API key in the designated text input field.

  2. Choose an input option (Text or URL) and paste the article text or URL in the corresponding field.

  3. Click on the "Classify and Summarize" button to see the results.

Installation

  1. Clone the repository

git clone https://github.com/Kaludii/News-Classifier-and-Summarizer.git

  1. Change the working directory

cd News-Classifier-and-Summarizer

  1. Install the required dependencies

pip install -r requirements.txt

  1. Run the Streamlit app

streamlit run app.py

  1. Open your browser and go to the specified address (usually http://localhost:8501)

Dependencies

About

A Streamlit app that classifies articles with URL or Text input into categories (e.g., politics, sports, technology, entertainment) and analyzes their tone (negative, positive, or neutral) using ChatGPT-Turbo API. In addition, the app summarizes the news article into different sections.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages