This project converts text extracted from PDF files into Anki flashcards using OpenAI's GPT model and is highly customizable.
- Python 3.x
-
Clone the repository:
git clone https://github.com/AykoSc/pdfs-to-anki-cards.git cd pdfs-to-anki-cards
-
Install the required Python packages:
pip install -r requirements.txt
The config.yaml
file is pre-configured and contains functionalities to:
- split flashcards by pdfs.
- set OpenAI's API key.
- set OpenAI's GPT model.
- ...
-
Configure the
config.yaml
file to your needs. -
Place your PDF files in the folder specified by
source_pdfs_folder
in theconfig.yaml
file. -
Run the script:
python main.py
-
The generated flashcards will be saved in the folder specified by
output_txts_folder
in theconfig.yaml
file.
This project is based on PDF2AnkiCards.