A modern web application that helps researchers and students quickly summarize academic papers using advanced language models. Built with Flask and Together AI, it provides an intuitive interface for summarizing papers from text, URLs, or file uploads.
-
Multiple Input Methods:
- Direct text input
- URL scraping
- File upload (supports .txt, .md, .rst)
- Batch processing for multiple files
-
Advanced Summarization:
- Choice of language models (T5-Small, DeepSeek-R1)
- Local or Together AI processing
- Configurable summary length
- Optional citation handling
-
Modern Interface:
- Clean, responsive design with Tailwind CSS
- Real-time processing feedback
- Error handling and validation
- Mobile-friendly layout
- Clone the repository:
git clone https://github.com/gr8monk3ys/paper-summarizer.git
cd paper-summarizer- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
# Create a .env file with:
TOGETHER_API_KEY=your_api_key_here
FLASK_APP=paper_summarizer.web.app
FLASK_ENV=development- Start the Flask server:
flask run-
Open your browser and navigate to
http://localhost:5000 -
Choose your preferred input method:
- Paste paper text directly
- Enter a paper URL
- Upload a paper file
- Batch process multiple files
-
Configure summarization options:
- Select model type (T5-Small or DeepSeek-R1)
- Choose provider (Local or Together AI)
- Set number of sentences
- Toggle citation handling
-
Click "Generate Summary" and view the results
- Testing: Run the test suite with:
python -m pytest tests/- Code Style: Follow PEP 8 guidelines
- Documentation: Add docstrings for new functions
- Error Handling: Include appropriate error messages
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
MIT License - see LICENSE file for details
- Together AI for providing the API
- Flask team for the excellent web framework
- Tailwind CSS for the styling framework