Here's the updated README.md
with the repository name:
# AI Text Summarizer App
Welcome to the **AI Text Summarizer App**, a web-based application that leverages Artificial Intelligence to summarize long texts quickly. This application uses the Hugging Face API for NLP to generate concise summaries, making it ideal for processing articles, research papers, or lengthy documents.
## Table of Contents
- [Demo](#demo)
- [Features](#features)
- [Project Structure](#project-structure)
- [Technologies Used](#technologies-used)
- [Setup](#setup)
- [Environment Variables](#environment-variables)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Demo
The application interface allows you to paste text into a text area, hit the "Summarize" button, and view the generated summary.
## Features
- **Text Summarization**: Summarize lengthy texts using AI-powered NLP.
- **Interactive UI**: Simple and intuitive interface to input and display summarized text.
- **Loading Indicator**: Provides visual feedback during text processing.
- **Responsive Design**: Works on both desktop and mobile devices.
- **Error Handling**: Handles errors in text processing or API connectivity gracefully.
## Project Structure
```plaintext
.
├── public
│ ├── index.html # Main HTML file
│ ├── stylesheet.css # CSS file for styling
│ ├── script.js # JavaScript for client-side interactivity
├── index.js # Express server setup
├── summarize.js # Text summarization logic using Hugging Face API
├── .env # Environment variables (API key)
└── README.md # Project documentation
- Node.js: JavaScript runtime for server-side code.
- Express: Web framework for Node.js to handle routes.
- Axios: Promise-based HTTP client for API requests.
- Hugging Face API: NLP model provider for text summarization.
- HTML, CSS, JavaScript: Frontend development.
To run the app locally, follow these steps:
-
Clone the repository:
git clone https://github.com/abhishek_maurya576/AI-Text-Summarize-app.git cd AI-Text-Summarize-app
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory with your Hugging Face API access token:ACCESS_TOKEN=your_huggingface_api_key
-
Run the server:
node index.js
Your server should now be running at
http://localhost:3000
.
The app requires an API key from Hugging Face to authenticate API requests for text summarization. Add the following variable in a .env
file:
- ACCESS_TOKEN: Your Hugging Face API key for the BART model.
-
Open the App: Go to
http://localhost:3000
in your browser. -
Enter Text: Paste the text you want to summarize in the input text area (minimum 200 characters).
-
Generate Summary: Click the "Summarize" button. The app will call the Hugging Face API and display the summary in the output area.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-branch
. - Submit a pull request.
This project is licensed under the MIT License.