我有快车节点.js应用程序,但我想用以下命令运行机器学习python codw。你知道吗
我已经找到了一些运行python机器学习的在线解决方案代码。用此堆栈溢出链接 How to call a Python function from Node.js
但是使用这个解决方案,我只运行一个python代码。你知道吗
var spawn = require("child_process").spawn;
var process = spawn('python', ["./my_script.py"]);
process.stdout.on('data', function (data) {
res.send(data.toString());
})
用这段代码我只运行一个代码python hello.py
,但我想用以下命令运行一个代码python test.py --model dataset/test.model --image s.jpg
你可以使用python-shell
如果要使用生成可以执行以下操作:
相关问题 更多 >
编程相关推荐