Browse Source

Update 'README.md'

天问 3 months ago
parent
commit
09233faaa4
1 changed files with 11 additions and 1 deletions
  1. 11 1
      README.md

+ 11 - 1
README.md

@@ -1,3 +1,13 @@
 # pdfGPT
 
-PDF GPT allows you to chat with the contents of your PDF file by using GPT capabilities. The only open source solution to turn your pdf files in a chatbot!
+PDF GPT allows you to chat with the contents of your PDF file by using GPT capabilities. The only open source solution to turn your pdf files in a chatbot!
+
+
+https://github.com/CosmosShadow/gptpdf
+
+```
+from gptpdf import parse_pdf
+api_key = 'Your OpenAI API Key'
+content, image_paths = parse_pdf(pdf_path, api_key=api_key)
+print(content)
+```