This project is a full-stack AI text summarizer application built using Replit, Node.js, Express, and the Hugging Face API. It allows users to input long text and receive a concise summary generated by an AI model.
Text Summarization: Enter long text and get a summarized version.
User-Friendly Interface: Simple and intuitive design for easy use.
API Integration: Utilizes the Hugging Face API for text summarization.
Full-Stack Implementation: Built with Node.js and Express for the backend.
Frontend: HTML, CSS, JavaScript
Backend: Node.js, Express
API: Hugging Face API
Hosting: Replit
Clone this repository.
Install dependencies using npm install.
Run the app locally with npm start.
To ensure the Hugging Face AI token is active and correctly implemented in the project, follow these steps:
1. Activate Your Hugging Face API Token:
Log in to your Hugging Face account.
Navigate to the API tokens section and activate or generate a new token if necessary.
2. Add the Token to summarize.js:
Open the summarize.js file in your project.
Locate the line where the headers are defined for the API request.
3. Replace <YOUR AI TOKEN>:
Copy your active Hugging Face API token.
Paste it in place of <YOUR AI TOKEN> in the Authorization header.
let config = {
......
headers: {
......
'Authorization': 'Bearer ' + **[Your AI Token]**
},
.....
};
Feel free to fork this project and submit pull requests. Any contributions, whether fixing bugs, adding features, or improving documentation, are welcome!