Skip to content

odreal/javascript-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-starter

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

How to get started

Download this repo, simply invoke

$ npm install

Usage

To get started, create an account at developer.clarifai.com.

Create an application, and get your API Key.

This basic starter uses your API Key to make prediction calls. This will never expire so you only have to fill it in once.

You'll notice that in the .gitignore file, it references a keys.js file. This is for security purposes, so you don't share your API Key with others. Add the following to that file:

var myApiKey = 'YOUR API KEY HERE';

You'll also notice a custom_train.js file which serves as a reference for Custom Training. Any custom models that you create (under these credentials) will appear in the dropdown menu on index.html, next to the "Custom" label

Example Output

Note the "Add image to Application" button on the bottom left of the image. This will automatically add the image to the application that is associated with your key!

About

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

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 74.1%
  • HTML 25.9%