This webapp takes the CBC.ca url and fetches fetches the article's text content in a GET request. After filtering out some common filler DOM elements in those articles, it then feeds the article content into Cohere's summarize API (currently in beta) and outputs the response to the user!
To run this on your machine:
.env
file in the root directory of the project.env
file look like .env.example
, then you can paste in your own Cohere API key