- In a new directory, clone this repository and
cd
into the quickstart/python
directory by entering the following commands:
git clone -b main https://github.com/twelvelabs-io/examples && cd quickstart/python
- Install dependencies:
pip3 install -r requirements.txt
- Set up your environment variables:
export API_KEY=<YOUR_API_KEY> && export API_URL=https://api.twelvelabs.io/v1
- Open the
quickstart.py
file in a plain-text editor and replace the following placeholders surrounded by <>
with your values:
- <YOUR_INDEX_NAME>
- <FILE_NAME>
- <FILE_PATH>
- Run the program: