React (https://facebook.github.io/react/) is one of the fastest maturing frontend JavaScript libraries for building component-based single page applications. This section will cover a hands-on tutorial to build a user interface using React to upload a file and get prediction using Einstein Vision on Heroku. We will use Express as a middleware to authenticate to the Prediction API and make API calls to the Einstein Vision Services. The final product can be viewed at https://powerful-bastion-25704.herokuapp.com/. It's a public Node.js app sitting on Heroku that accepts a flower image (at this point, it loads only roses, lilies, and lotuses of size less than 1 MB) and recognizes the image intelligently.
The app uses the model we built in the Explore Einstein Vision APIs section, which is trained to understand...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia