This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from clarifai.rest import ClarifaiApp | |
from clarifai.rest import Image as ClImage | |
#register the Aoolication | |
app = ClarifaiApp(api_key='add_your_api_key') | |
#upload 10 images for 'dogs' concept | |
img1 = ClImage(file_obj=open('DogImages/dog1.jpg', 'rb'),concepts=['dogs']) | |
img2 = ClImage(file_obj=open('DogImages/dog2.jpg', 'rb'),concepts=['dogs']) | |
img3 = ClImage(file_obj=open('DogImages/dog3.jpg', 'rb'),concepts=['dogs']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from clarifai.rest import ClarifaiApp | |
app = ClarifaiApp(api_key='Your_API_KEY') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from clarifai.rest import ClarifaiApp | |
from clarifai.rest import Image as ClImage | |
app = ClarifaiApp(api_key='4545a210c81b421a8e1282201a175a7d') | |
img1 = ClImage(file_obj=open('DogImages/dog1.jpg', 'rb'),concepts=['dogs']) | |
img2 = ClImage(file_obj=open('DogImages/dog2.jpg', 'rb'),concepts=['dogs']) | |
img3 = ClImage(file_obj=open('DogImages/dog3.jpg', 'rb'),concepts=['dogs']) | |
img4 = ClImage(file_obj=open('DogImages/dog4.jpg', 'rb'),concepts=['dogs']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.models.create('pets', concepts=['dogs','cats']) | |
model = app.models.get('pets') | |
model.train() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-app="myApp" ng-controller="myController"> | |
<p>Pass Students{{submit(list)}} : </p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-app="myApp" ng-controller="myController"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install --upgrade algoliasearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from algoliasearch import algoliasearch | |
client = algoliasearch.Client("Your Application ID","Your API key") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indexEx = client.init_index("movie") | |
indexEx.clear_index() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
jsn_data1 = json.load(open('DataFiles/data.json')) | |
jsn_data2 = json.load(open('DataFiles/data1.json')) | |
jsn_data3 = json.load(open('DataFiles/data2.json')) |
OlderNewer