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 blockspoetry run embeddingspoetry run fine_tunepoetry run guidancepoetry run rag
