الملفات
MGIS_Task1/PDFSummerizorV1/README.md
2025-09-08 19:43:28 +03:00

22 أسطر
788 B
Markdown

# 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
1. **Extracts Text**: The tool first extracts the text content from the provided PDF file.
2. **Initial Summary**: It then uses a generative AI model (e.g., `gemma-3-4b-it`) to create an initial summary of the text.
3. **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
1. Install the required dependencies:
```bash
pip install -r requirements.txt
```
2. Place your PDF file in the `uploads` directory.
3. Run the application from your terminal:
```bash
python app.py uploads/your_file.pdf
```