I want to use deep learning or machine learning to do some calculations on my front-end.
But there are no react examples.
My original idea was use python with react. Tensorflow would run in back-end in Python, while the front-end would be using React and get the results from the Python back-end.
Then I saw that Tensorflow is also in Javascript. So it can be used directly on the website, right?
Can React then directly use Tensorflow?
Yes you can install it NPM, it is at their documentation: https://js.tensorflow.org/setup/
yarn add @tensorflow/tfjs or npm install @tensorflow/tfjs
Then import * as tf from '@tensorflow/tfjs';
Hope that helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With