This app is a news chatbot that presents relevant news to the query.
- Python 3.10
- All required libraries and frameworks can be found in
requirements.txt
.
Clone the repository to your local machine using git clone https://github.com/RochanVanam/news_chatbot.git
.
- Open terminal/command prompt/CLI, navigate to directory of choice
- Clone repository
- Create and activate virtual environment in Python 3.10 (optional but recommended)
- Install libraries using
pip install -r requirements.txt
- Run app.py using
python app.py
- Open browser and go to the web address printed in CLI
- Enter query. It might take a minute to get a response.
In other_versions/
, there is a program called cnn.py
that scrapes CNN instead of CNBC.
- To scrape CNN, move
cnn.py
into the main project directory. - Go to app.py and edit the import statement at the top from
from main import Chatbot, get_progress
tofrom cnn import Chatbot, get_progress
. - Do steps 5-7 from above.
This program scrapes CNBC for news data, and uses Google's Pegasus model off HuggingFace to synthesize an output. Additionally, in other_versions/
, there is a program that scrapes CNN instead of CNBC.
Thank you!
Rochan V: