JSPM

heatjs

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25419F
  • License ISC

A thin wrapper around Heat's human-intelligence api

Package Exports

  • heatjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (heatjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Synopsis

Heat is an API for executing tasks that require Intelligence (ranging from OCR/speech-to-text through Text Classification and even Web Scraping). Anything a human can do, Heat does better (with a unique blend of realtime-available humans and ML algorithms).

Installation

Grab your API Token from https://account.heatintelligence.com/ and then simply: npm install heatjs

Code Example

const heat = require("heatjs")(
  "test_e53bbf19fdd077eda1cd933a54ebe987" // replace with your own API Token
);

heat.requestMultipleChoice({
  instruction: "Does the image contain violent content?",
  attachments_type: "image",
  attachments: [ "http://i.imgur.com/qRWH5.jpg" ],
  choices_type: "text",
  choices: [ "no violence", "mild violence", "intense violence" ]
}).then(function (request) {
  console.log('request', request.id, 'queued for execution');
  heat.waitForRequest(request.id).then(function (completed_request) {
    console.log('got response:', completed_request.response);
  });
});

API Reference

For more information, code examples, and a complete API refrence, visit:

https://docs.heatintelligence.com

Help & Support

For help or support, either write to us at the Heat website :

https://heatintelligence.com/#contact

or email us at support@heatintelligence.com