This is a Flask project that implements a news recommendation system and a text summarization feature using Neural Collaborative Filtering and Transformer Model.
-
Clone the repository:
git clone https://github.com/uppercasee/recNsum.git cd recNsum
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Once the server is running, visit http://127.0.0.1:5000/ in your web browser.
-
You will be presented with a form where you can input text for summary generation and provide a user ID for news recommendation.
-
Click on the "Generate Summary" button to generate a summary for the provided text.
-
To receive news recommendations, enter a user ID and click on the "Recommend News" button. This will display news articles with their IDs, titles, and abstracts.
This project is licensed under the MIT License.