Welcome to the AI Text Summarizer App! This application leverages the power of Artificial Intelligence (AI) to provide concise summaries of lengthy texts. Whether you have an article, research paper, or any other text document, this app helps you summarize it quickly and effectively.
- Features
- Technologies Used
- Getting Started
- Usage
- Project Structure
- Environment Variables
- Troubleshooting
- Contributing
- License
- Text Summarization: Quickly summarize long texts with the help of Hugging Face's BART model.
- Interactive UI: User-friendly interface to paste text and get summaries.
- Sample Text: Clickable sample text for easy testing.
- Responsive Design: Works seamlessly on both desktop and mobile devices.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express.js
- API: Hugging Face's BART model via REST API
- Package Manager: npm
Follow these instructions to get a copy of the project up and running on your local machine.
Before you begin, ensure you have the following software installed on your local machine:
- Node.js (v14 or higher)
- npm (comes with Node.js)
- Git (optional, for cloning the repository)
-
Clone the repository (if you haven't already):
git clone https://github.com/qaidjoharj53/AI-Text-Summarizer-App.git cd AI-Text-Summarizer-App
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory. - Add your Hugging Face API token in the
.env
file:ACCESS_TOKEN=your_hugging_face_api_token
- Create a
-
Start the backend server:
node index.js
-
Access the application:
- Open your web browser and go to:
http://localhost:3000
- Open your web browser and go to:
You should now see the AI Text Summarizer App running on your local machine.
- Enter text: Paste the text you want to summarize in the text area labeled "Paste in some text to summarize".
- Submit: Click the "Summarize" button.
- View summary: The summarized text will appear in the output text area below.
For testing purposes, you can click the "Click here" link to auto-fill a sample text.
├── public/ # Public directory for static files
│ ├── index.html # Frontend HTML file
│ ├── stylesheet.css # CSS file for styling
│ ├── script.js # JavaScript file for frontend logic
├── index.js # Main server file
├── summarize.js # API interaction logic for summarization
├── .env # Environment variables (Not included in version control)
├── package.json # Node.js package manifest
└── README.md # Project documentation
If you encounter issues while running the app, consider the following:
- Dependencies: Ensure all dependencies are installed by running
npm install
. - Node.js Version: Check if you're using a compatible Node.js version (v14 or higher).
- Environment Variables: Double-check your
.env
file to ensure your API key is correctly set. - Console Errors: Check the console output in both your terminal and browser's Developer Tools for any error messages.
Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for using the AI Text Summarizer App! If you have any questions or need further assistance, feel free to contact me.