An easy-to-use Python app that uses AI to summarize long text into concise, readable summaries.
- Input plain text or files and get a short summary
- Supports both bullet‑point and paragraph formats
- Lightweight and fast—process text in seconds
- Clean, user-friendly interface
- Python 3.8 or newer
- Virtual environment (recommended)
- (If using external AI model/API) API key from provider (e.g. OpenAI GPT)
-
💾 Clone the repo
git clone https://github.com/Akhilesh-Sappal/Ai-Text-Summarizer.git cd Ai-Text-Summarizer
-
🧪 Create virtual environment
python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows
-
📦 Install dependencies
pip install -r requirements.txt
-
🔑 (Optional) Add API key
If you're using an API (e.g. OpenAI), add your key:
export OPENAI_API_KEY="your_api_key_here" # macOS/Linux set OPENAI_API_KEY=your_api_key_here # Windows
python main.py --input "My file.txt" --format bullets
Or, for direct input:
python main.py --text "Paste your long text here" --format paragraph
You can modify the format (bullets
or paragraph
) as per your preference.
At its core, the script:
- Loads your input text or file
- Sends it to an AI model (locally hosted or via API)
- Receives and displays a concise summary
(Adjust details here based on whether you use GPT, HuggingFace model, etc.)
Input:
"Artificial intelligence (AI) is intelligence demonstrated by machines. Leading AI textbooks define the field as..."
Output (bullets):
- AI represents machine-based intelligence
- Major models and breakthroughs have advanced AI capabilities
- Applications include healthcare, finance, and automation
Feel free to contribute! Here’s how:
- Fork the repo
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Feature: ..."
- Push:
git push origin feature-name
- Open a pull request
This project is licensed under the MIT License—see the LICENSE file for details.
If you need help or want to suggest improvements, just open an issue or reach out!
Happy summarizing! ✨