Cut It Short is a web application that summarizes any given text data, providing concise summaries of lengthy content. This application uses Flask for backend processing and integrates with Hugging Face's summarization API for generating summaries.
- Text Summarization: Input any length of text to receive a summarized output.
- Customizable Summary Length: Set the preferred length of the summary with an adjustable range.
- Responsive UI: The frontend is styled with Tailwind CSS for a clean and responsive layout.
- Frontend: HTML, CSS, Tailwind CSS
- Backend: Python (Flask)
- API: Hugging Face
To set up and run the application locally, follow these steps:
- Python 3.6 or later
- Flask
- Requests library
- Clone the repository:
git clone https://github.com/your-username/cut-it-short.git cd cut-it-short
- Install the required libraries
pip install flask requests
- Obtain an API key from Hugging Face and replace your key here in app.py with your API key
headers = {"Authorization": f"Bearer your_key_here"}
- Run the application
python app.py
- Open a browser and navigate to http://127.0.0.1:5000 to access the application.
- Enter the text you want to summarize in the input field.
- Adjust the Summary Length slider to set the desired summary length.
- Click Submit to generate the summary.
- View and copy the generated summary using the Copy Text button.
This project is licensed under the MIT License.