In Salesforce, from Setup, enter
Visualforcein the Quick Find box, then select Visualforce Pages.
Enter a label and name of Predict.
README.mdfile, copy all of the code from
</apex:page>and paste it into the code editor.
Click Preview to test out the page.
Your page shows the prediction results from the General Image Classifier, and the classifier is pretty sure it’s a picture of a tree frog.
Congratulations! You wrote code to call the Einstein Image Classification API to make a prediction with an image, and all from within your Salesforce org.
Updated less than a minute ago