SmartPDF: AI powered pdf reader.
Project description
SmartPDF
A simple python library for AI-powered PDF documents processing.
Requirements
- Linux, Windows, MacOS
- Python 3.8.+
- OpenAI API Key
Install package
pip install smart_pdf
Install the latest version
git clone https://github.com/bes-dev/smart_pdf.git
cd smart_pdf
pip install -r requirements.txt
pip install .
Install the latest version
git clone https://github.com/bes-dev/random_face.git
cd random_face
pip install -r requirements.txt
python download_model.py
pip install .
Demo
python -m smart_pdf.smart_pdf --help
Example
from smart_pdf import SmartPDF
smart_doc = SmartPDF(
path=<path_to_pdf>,
openai_api_key=<openai_api_key>
)
print(smart_doc)
print(f"Summary: {smart_doc.summary()}")
print("Press q! to exit")
while True:
request = input("> ")
if request == "q!":
break
print(smart_doc.smart_search(request))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file smart_pdf-2023.9.11.1-py3-none-any.whl
.
File metadata
- Download URL: smart_pdf-2023.9.11.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5e929a8662fa320ad8259c48dd033a920407a0acd0728c09f027c8a04166bf |
|
MD5 | 20e727e40890451c733d03f8bd18eb75 |
|
BLAKE2b-256 | c68657b096c6691af41788822d69cd1437ded843e9955e7042d26be315d17ec0 |