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.
- 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
- Then activate it:
conda activate <your_env_name>
- Go the script folder:
cd scripts
-
Copy your openAi API key in the .env file. You can find this here: https://platform.openai.com/account/api-keys
-
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.
See the example/ folder for example runs.
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!