• Stars
    star
    55
  • Rank 537,381 (Top 11 %)
  • Language
    Go
  • License
    Other
  • Created about 9 years ago
  • Updated about 7 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-javascript

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

few-shot-ctm

Few shot learning
Python
156
star
3

clarifai-java

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

coreos-nvidia

Simplified building of NVIDIA drivers for CoreOS Linux
Shell
60
star
5

clarifai-python-grpc

Clarifai gRPC Python API client
Python
57
star
6

clarifai-ios

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

clarifai-nodejs-grpc

Clarifai gRPC NodeJS client
JavaScript
45
star
8

lambdafai

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

clarifai-android-starter

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

clarifai-python

Experience the power of Clarifaiโ€™s AI platform with the python SDK. ๐ŸŒŸ Star to support our work!
Python
24
star
11

old-docs

Clarifai's public documentation
Python
22
star
12

clarifai-php

Clarifai client library for PHP
PHP
21
star
13

clarifai-nodejs

Experience the power of Clarifaiโ€™s AI platform with the nodejs SDK. ๐ŸŒŸ Star to support our work!
TypeScript
19
star
14

javascript-starter

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

docs

Clarifai documentation repo for Docusaurus
JavaScript
16
star
16

examples

Examples for Clarifai Python SDK and Integrations. Give the repo a star โญ
Jupyter Notebook
14
star
17

clarifai-csharp

Clarifai client library for C#
C#
12
star
18

clarifai-php-grpc

Clarifai gRPC PHP client
PHP
11
star
19

clarifai-java-grpc

Clarifai gRPC Java client
Java
8
star
20

clarifai-python-utils

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

clarifai-pyspark

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

clarifai-swift-grpc

Clarifai gRPC Swift client
Swift
5
star
23

clarifai-csharp-grpc

Clarifai gRPC C# client
C#
5
star
24

colab-notebooks

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

clarifai-rust-grpc

Clarifai gRPC Rust client
Rust
4
star
26

public-notebooks

Jupyter Notebook
4
star
27

clarifai-go-grpc

Clarifai gRPC Go client
Go
4
star
28

clarifai-web-grpc

JavaScript
3
star
29

quickstart-csharp-mvc-twilio

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

which-celebrity-app

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

module-template

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

module-llm-battleground

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

clarifai-cpp-grpc

Clarifai gRPC C++ client
C++
2
star
34

module-docQA

Jupyter Notebook
1
star
35

Mario

Python
1
star
36

custom-training-tools

Python
1
star
37

quickstart-csharp-uwp-claire

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