Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 886 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 886 Bytes

Node.js quickstart

Prerequisites

Install

  1. 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
  1. Install dependencies:
pip3 install -r requirements.txt

Run the quicksart

  1. Set up your environment variables:
export API_KEY=<YOUR_API_KEY> && export API_URL=https://api.twelvelabs.io/v1
  1. 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>
  1. Run the program:
python3 quickstart.py