PDF Summarizer V1
This project is a command-line tool to summarize PDF documents using a two-step process with AI models.
How it works
- Extracts Text: The tool first extracts the text content from the provided PDF file.
- Initial Summary: It then uses a generative AI model (e.g.,
gemma-3-4b-it
) to create an initial summary of the text. - Refined Summary: This initial summary is then passed to a second, potentially more advanced model (e.g.,
QwQ-32B
), to refine and improve the summary.
How to use
- Install the required dependencies:
pip install -r requirements.txt
- Place your PDF file in the
uploads
directory. - Run the application from your terminal:
python app.py uploads/your_file.pdf