Welcome to resto-app Discussions! #1
akaday
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Great! You've successfully added both
@tensorflow/tfjs
andbrain.js
to your project. Now you can start integrating AI capabilities into yourrest-app
.Using TensorFlow.js
Here's a simple example to get you started with TensorFlow.js:
Create a new file called
ai.js
in your project directory.Add the following code to
ai.js
:Using Brain.js
For Brain.js, you can create another file, say
brain.js
, and add the following code:Create a new file called
brain.js
in your project directory.Add the following code to
brain.js
:Next Steps
Run your AI scripts: You can run these scripts using Node.js:
Integrate with your REST API: You can create endpoints in your
rest-app
to utilize these AI models. For example, you can create a route in your Express app that uses the TensorFlow.js model to make predictions.If you need any more help or have specific questions about integrating these libraries, feel free to ask! 😊
Source : conversation avec Copilot, 07/10/2024
(1) Fixed - npm err code eunsupportedprotocol - Articles about design and .... https://weekendprojects.dev/posts/npm-err-code-eunsupportedprotocol/.
(2) 【实战指南】解决 npm 中的 “EUNSUPPORTEDPROTOCOL“ 错误_npm error code .... https://blog.csdn.net/tombosky/article/details/141707354.
(3) Resolving Error EUNSUPPORTEDPROTOCOL When Installing next-auth Package .... https://www.devgem.io/posts/resolving-error-eunsupportedprotocol-when-installing-next-auth-package.
(4) npm ERR! code EUNSUPPORTEDPROTOCOL - 知乎 - 知乎专栏. https://zhuanlan.zhihu.com/p/358102310.
(5) undefined. https://github.com/Vagr9K/gatsby-advanced-starter.git.
(6) github.com. https://github.com/AluminumChassis/bciccarelli.me/tree/0d71f087fbe42832ad68ab6507c0d2fbfdb97b4b/tf_demo.js.
(7) github.com. https://github.com/m-ahmadi/exref/tree/1e004162fdce9aeeef2b8d37de50942fe6d91a98/ml%2Fbrain.js%2Fbasic.js.
Beta Was this translation helpful? Give feedback.
All reactions