A Streamlit-based web application that allows users to upload single or multiple PDF files and interact with their contents using OpenAI's GPT-3.5 Turbo. Users can extract text, ask questions, generate summaries, highlight relevant sections, and download results.
- π€ Upload single or multiple PDF files
- π§ Ask questions about PDF contents using AI
- π View extracted text from PDFs
- β¨ Highlight relevant sections in the original PDF
- π Generate and download AI-based summaries
- πΎ Download AI responses and summaries
- Streamlit β for building the UI
- OpenAI GPT-3.5 Turbo β for natural language processing
- pdfplumber β for text extraction
- PyMuPDF (fitz) β for PDF manipulation and highlighting
- Python β core programming language
This app uses the OpenAI API, which requires an API key.
-
Get your key from https://platform.openai.com/account/api-keys.
-
Replace the following line in
main.py:openai.api_key = "sk-..." # Replace with your actual API key