In this project, I'm using an LLM to automatically generate flashcards for spaced repetition software Anki.
- Create a new virtual environment:
python -m venv .venv
Or use the Create environment
action in VSCode.
- Activate the environment:
In bash
or zsh
:
source .venv/bin/activate
In fish
:
source .venv/bin/activate.fish
- Install the dependencies:
pip install -r requirements.txt
- Create a
.env
file and add your OpenAI API key:
OPENAI_API_KEY=<your-openai-api-key>
- For further instructions, see the Anki task.