llm-pdf-qa / README.md
Sawon2023's picture
Q&A Generator from PDF (Text not Image)
68c32d7
|
raw
history blame
677 Bytes

Make Question and Answer from your PDF

Setup Environment:

  1. Create an account in https://openai.com/ and generate your own API_KEY

  2. Download the following libraries and packages: a. !pip install langchain b. !pip install pypdf c. !pip install transformers==4.33.1 This particular package will install the following dependencies: 1. huggingface-hub-0.17.1 2. safetensors-0.3.3 3. tokenizers-0.13.3 d. !pip install gradio

Run the System

  1. Run the file:
python3 app.py
  1. Copy the url from terminal and paste in the browser

  2. Upload your PDF & Get the Questions from each page of the PDF