This Streamlit application leverages a powerful pre-trained Large Language Model (LLM) to instantly summarize news articles. Users can input a URL to a news article, and the AI will generate a concise summary, making it easy to quickly grasp the main points without reading the entire piece.
Click here to open the Dashboard!
- Article Summarization: Generates quick summaries of news articles from provided URLs.
- Intuitive User Interface: Built with Streamlit for a clean and interactive web application.
- Local LLM Integration: Utilizes a transformer-based model from Hugging Face's
transformers
library for efficient local inference. - Error Handling: Provides informative feedback for invalid URLs or summarization issues.
- Python
- Streamlit: For building the interactive web application.
- Hugging Face Transformers: For the pre-trained summarization LLM (
sshleifer/distilbart-cnn-12-6
). - Requests: For fetching web page content.
- BeautifulSoup4: For parsing HTML and extracting article text.
- PyTorch (or TensorFlow): Backend for the
transformers
library.
-
Clone the repository:
git clone [https://github.com/belohith/ainews](https://github.com/belohith/ainews) cd ainews
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: `venv\Scripts\activate`
-
Install dependencies:
pip install streamlit transformers torch requests beautifulsoup4
-
Run the Streamlit app:
streamlit run app.py
-
The application will open in your web browser, usually at
http://localhost:8501
.
- Enter the URL of a news article in the input field.
- Click the "Summarize Article" button.
- View the generated summary and original article title.
Lohith Bollineni
This project is open source and available under the MIT License.