Quick example of how to use Gradient API with Python.
The code relies on environment variables. They can be injected through dotenv
by creating .env
file in the current directory:
GRADIENT_ACCESS_TOKEN=...
GRADIENT_WORKSPACE_ID=...
- Clone this repo
- Run
poetry install
- Run any of the following:
poetry run blocks
poetry run embeddings
poetry run fine_tune
poetry run guidance
poetry run rag