Skip to content

Growing set of scripts to explore pdf publication using ChatGPT API

License

Notifications You must be signed in to change notification settings

JustasB/openai_tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

This repository stores simple scripts to explore scientific publication pdfs using ChatGPT API. This is created with the simple intention of sharing useful code to look across the litterature.

Running

  1. At the moment, there is a simple script. To run it, you first need to create your conda environment as :

conda create --name <your_env_name> --file requirements.txt

  1. Then activate it:

conda activate <your_env_name>

  1. Go the script folder:

cd scripts

  1. Copy your openAi API key in the .env file. You can find this here: https://platform.openai.com/account/api-keys

  2. Run it using:

python import_pdf_ai.py --path_pdf <path_to_your_pdf> --save_summary True

This will save a little text file along with your pdf with the same filename but with a .txt extension.

Example

See the example/ folder for example runs.

Credits

This repository was started by Jerome Lecoq on April 12th 2023. Please reach out [email protected] for any questions. If this is useful to you, 👋 are welcome!

About

Growing set of scripts to explore pdf publication using ChatGPT API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%