randysim / learner Goto Github PK
View Code? Open in Web Editor NEWA deep learning ai chat bot for discord.js
A deep learning ai chat bot for discord.js
Hey i wanted to use this but i have few questions
node-pre-gyp info This Node instance does not support builds for Node-API version 8 node-pre-gyp info This Node instance does not support builds for Node-API version 8 2021-06-23 11:38:20.803379: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Bot is now on! (node:6604) UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported at getNodeRequestOptions (/content/Learner/node_modules/node-fetch/lib/index.js:1305:9) at /content/Learner/node_modules/node-fetch/lib/index.js:1410:19 at new Promise (<anonymous>) at fetch (/content/Learner/node_modules/node-fetch/lib/index.js:1407:9) at HTTPRequest.PlatformNode.fetch (/content/Learner/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:7330:16) at HTTPRequest.<anonymous> (/content/Learner/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:8280:55) at step (/content/Learner/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:82:23) at Object.next (/content/Learner/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:63:53) at /content/Learner/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:56:71 at new Promise (<anonymous>) (Use
node --trace-warnings ...to show where the warning was created) (node:6604) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:6604) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I am getting this error please help me to fix it ๐ญ๐ญ๐ญ๐ญ
It says this for in messages.js, for the following line:
if (Command.names.includes(Env.args[0]))
Hi, I'm having the following problem:
`D:\Projetos\Bot Blaze\Aprendiz\Training\trainAI.js:16
var sentences = trainingData.map(t => t.message.toLowerCase());
^
TypeError: t.message.toLowerCase is not a function
at D:\Projetos\Bot Blaze\Aprendiz\Training\trainAI.js:16:53
at Array.map ()
at trainAI (D:\Projetos\Bot Blaze\Aprendiz\Training\trainAI.js:16:34)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.execute (D:\Projetos\Bot Blaze\Aprendiz\Commands\tftrain.js:17:21)`
can you send me your Dataset.json and Stats.json and model.json file?? plz :(
(node:7956) UnhandledPromiseRejectionWarning: Error: tensor2d() requires shape to be provided when values
are a flat/TypedArray
at Object.tensor2d (C:\Users\finn\Desktop\Learner-master\node_modules@tensorflow\tfjs-core\dist\tf-core.node.js:19731:15)
at trainAI (C:\Users\finn\Desktop\Learner-master\Training\trainAI.js:18:21)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.execute (C:\Users\finn\Desktop\Learner-master\Commands\tftrain.js:11:21)
(Use node --trace-warnings ...
to show where the warning was created)
(node:7956) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7956) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:16336) UnhandledPromiseRejectionWarning: Error: Path C:\Users\phone\OneDrive\Desktop\TextAI\model.json does not exist: loading failed
at C:\Users\Administrator\Desktop\Learner-master\Learner-master\node_modules@tensorflow\tfjs-node\dist\io\file_system.js:67:23
(Use node --trace-warnings ...
to show where the warning was created)
(node:16336) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:16336) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hello, It return this error when I try to run the lnr command,
if (!model) {
model = await tf.loadLayersModel("file:///Users/phone/OneDrive/Desktop/TextAI/model.json");
Session.addModel(model);
}
I tried to change the path to my own and create a new file named "model.json" But it still doesn't work. Can you help me fix this issue? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.