We’re excited to announce our new Python SDK - https://github.com/Clarifai/clarifai-python for Clarifai, launching in developer preview.
While you can interact with Clarifai with our powerful gRPC API, we also recognize that Python is the most common programming language used by developers, data scientists, and the machine learning community at large, and prefer to use in an object-oriented way. We aim to provide the functionality of the platform, accessible with one or fewer lines of code.
With the new Python SDK, you can now:
We’d love for you to participate in the open beta and provide feedback. Sign up and setup your PAT token, you can access the Python SDK directly today via pip.
pip install -U clarifai
You can also learn more about the Python SDK and API Reference our docs.
The SDK uses PAT token for authentication. To create a new PAT, log in to the portal, navigate to the upper right-hand section of the navigation bar, and click your user’s profile icon.
Select the Security settings option on the drop-down list.
On the ensuing Security page, click the Create Personal Access Token button.
On the command line on your computer, export your PAT as an environment variable
export CLARIFAI_PAT={your personal access token}
For more examples, see https://github.com/Clarifai/examples/tree/main/datasets/upload
Explore and choose state-of-art Vision, Language, and Generative AI models here.
Copy the URL of the selected model as above and start predicting from the models within the Clarifai Community.
Additionally, you can list the models from the community with the below snippet:
Users of clarifai-python-utils, take notice that the repository is deprecated, and clarifai-python-grpc will still be available with granular API access. For more information on gRPC / HTTP clients, refer to the docs here.
Try it out inside the Clarifai platform!
If you haven't already signed up for Clarifai, you're missing out on a lot of cool AI features.
More features are in progress, and we are working on adding Workflow creation with YAML, MLOps processes, and more exciting utilities. If you want to see any feature within the SDK, please reach out to us on Clarifai Discord!
© 2023 Clarifai, Inc. Terms of Service Content TakedownPrivacy Policy
© 2023 Clarifai, Inc. Terms of Service Content TakedownPrivacy Policy