An intelligent tool to summarize text, YouTube videos, and documents seamlessly using AI-powered summarization models. 🌟
- 📄 Summarize plain text for quick insights.
- 🎥 Extract and summarize YouTube video transcripts.
- 📁 Upload and summarize PDFs, Word documents, or text files.
- 🤖 Powered by Hugging Face's BART model for high-quality summaries.
- 🌐 Cross-origin support enabled via Flask CORS.
- 🔗 Modern, responsive React frontend integrated with Tailwind CSS.
- 🐍 Flask: Backend framework for API handling.
- 🔗 Flask-CORS: Enable cross-origin requests.
- 🎥 YouTube Transcript API: Fetch YouTube video transcripts.
- 🤖 Hugging Face API: AI-based text summarization.
- 📂 PyPDF2 & python-docx: File parsing for PDFs and Word documents.
- ⚛️ React: Frontend framework for building a modern UI.
- 🎨 Tailwind CSS: For sleek and responsive design.
- Python 3.9+ 🐍
- Node.js 16+ (for frontend) ⚛️
-
Clone the repository:
git clone https://github.com/yourusername/summary-app.git cd summary-app
-
Install backend dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.env
file in the root directory with:HUGGING_FACE_API_KEY=your_huggingface_api_key
-
Run the backend:
python app.py
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Build the production files:
npm run build
Endpoint | Method | Description |
---|---|---|
/summary/text |
POST |
Summarizes plain text input. |
/summary/youtube |
POST |
Summarizes a YouTube video. |
/summary/file |
POST |
Summarizes uploaded files. |
/summary/combined |
POST |
Summarizes combined inputs. |
/summary/all |
POST |
Summarizes text, video, and file. |
Contributions are welcome! 🌟
- Fork the repo.
- Create a feature branch:
git checkout -b feature-name
- Commit and push changes:
git commit -m "Add feature-name" git push origin feature-name
- Open a Pull Request.