• Stars
    star
    55
  • Rank 518,899 (Top 11 %)
  • Language
    Go
  • License
    Other
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DEPRECATED: please use https://github.com/Clarifai/clarifai-go-grpc

Clarifai Golang Library

Library for our v1 API.

GoDoc

Disclaimer

This API client only supports Clarifai v1 API. Stay tuned for the v2 support.

Usage

go get github.com/clarifai/clarifai-go

package main

import (
	"fmt"

	"github.com/clarifai/clarifai-go"
)

func main() {
	client := clarifai.NewClient("<client_id>", "<client_secret>")
	// Get the current status of things
	info, err := client.Info()
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Printf("%+v\n", info)
	}
	// Let's get some context about these images
	urls := []string{"https://samples.clarifai.com/metro-north.jpg", "https://samples.clarifai.com/puppy.jpeg"}
	// Give it to Clarifai to run their magic
	tag_data, err := client.Tag(clarifai.TagRequest{URLs: urls})

	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Printf("%+v\n", tag_data) // See what we got!
	}

	feedback_data, err := client.Feedback(clarifai.FeedbackForm{
		URLs:    urls,
		AddTags: []string{"cat", "animal"},
	})

	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Printf("%+v\n", feedback_data)
	}
}

Testing

Run go test

##Special Thanks

Thanks so much to Sam Couch for his amazing contribution to the Clarifai client libraries by starting this one and graciously handing it off to us. Follow him on Twitter @SamuelCouch.

More Repositories

1

clarifai-python

Experience the power of Clarifai’s AI platform with the python SDK. 🌟 Star to support our work!
Python
382
star
2

clarifai-javascript

Official Clarifai JavaScript client for browsers and node.js
JavaScript
351
star
3

few-shot-ctm

Few shot learning
Python
153
star
4

clarifai-java

DEPRECATED Clarifai API Java Client, use clarifai-java-grpc instead.
Java
87
star
5

coreos-nvidia

Simplified building of NVIDIA drivers for CoreOS Linux
Shell
61
star
6

clarifai-python-grpc

Clarifai gRPC Python API client
Python
56
star
7

clarifai-ios

DEPRECATED: please use https://github.com/Clarifai/clarifai-swift-grpc
Objective-C
52
star
8

clarifai-nodejs-grpc

Clarifai gRPC NodeJS client
JavaScript
42
star
9

lambdafai

Lambdafai is a simple framework for building and deploying REST APIs using AWS Lambda, API Gateway, DynamoDB, and S3.
JavaScript
37
star
10

clarifai-android-starter

DEPRECATED: please use https://github.com/Clarifai/clarifai-java-grpc
Java
37
star
11

old-docs

Clarifai's public documentation
Python
22
star
12

clarifai-php

Clarifai client library for PHP
PHP
21
star
13

javascript-starter

A few simple examples to help you get started using the Clarifai Javascript client and API
JavaScript
18
star
14

docs

Clarifai documentation repo for Docusaurus
JavaScript
15
star
15

clarifai-csharp

Clarifai client library for C#
C#
12
star
16

clarifai-php-grpc

Clarifai gRPC PHP client
PHP
11
star
17

examples

Examples for Clarifai Python SDK and Integrations. Give the repo a star ⭐
Jupyter Notebook
7
star
18

clarifai-java-grpc

Clarifai gRPC Java client
Java
7
star
19

clarifai-python-utils

This is a collection of helper utilities around the Clarifai API.
Python
6
star
20

clarifai-pyspark

Interfaces for Unstructured data and ML pipelines with Databricks and Clarifai
Python
6
star
21

clarifai-swift-grpc

Clarifai gRPC Swift client
Swift
5
star
22

colab-notebooks

Collection of Google Colab notebooks for using the Clarifai API
Jupyter Notebook
5
star
23

clarifai-go-grpc

Clarifai gRPC Go client
Go
4
star
24

clarifai-rust-grpc

Clarifai gRPC Rust client
Rust
4
star
25

clarifai-csharp-grpc

Clarifai gRPC C# client
C#
4
star
26

public-notebooks

Jupyter Notebook
4
star
27

clarifai-web-grpc

JavaScript
3
star
28

quickstart-csharp-mvc-twilio

.NET MVC Demo using Clarifai and Twilio
C#
3
star
29

module-template

This is a template repository for easily creating modules within Clarifai.
Python
2
star
30

clarifai-cpp-grpc

Clarifai gRPC C++ client
C++
2
star
31

which-celebrity-app

A React application that uses #Clarifai to detect celebrities in the user's webcam
TypeScript
1
star
32

module-docQA

Jupyter Notebook
1
star
33

module-llm-battleground

Easily try the latest LLMs to see which is the best for your use case.
Python
1
star
34

Mario

Python
1
star
35

custom-training-tools

Python
1
star
36

quickstart-csharp-uwp-claire

A live camera feed piped to Clarifai built on Universal Windows Platform
C#
1
star