JSFiddle - React, Tailwind, and code Playground

by Semih Muyaoğlu

HTML

<script src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>

JavaScript

const app = new Clarifai.App({
 apiKey: 'd0d3b8799d4c48e2b4e194f4303d01d0'
});



app.models.predict({Clarifai.GENERAL_MODEL}, "https://samples.clarifai.com/metro-north.jpg").then(
  function(response) {
    // do something with response
		console.log("sonuc: "+ response);
  },
  function(err) {
	console.log("hata: "+err)
    // there was an error
  }
);