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.
Click Here To View This App Online!
- 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
-
Enter your OpenAI API key in the designated text input field.
-
Choose an input option (Text or URL) and paste the article text or URL in the corresponding field.
-
Click on the "Classify and Summarize" button to see the results.
- Clone the repository
git clone https://github.com/Kaludii/News-Classifier-and-Summarizer.git
- Change the working directory
cd News-Classifier-and-Summarizer
- Install the required dependencies
pip install -r requirements.txt
- Run the Streamlit app
streamlit run app.py
- Open your browser and go to the specified address (usually
http://localhost:8501
)