pinokiod 2.15.32 → 2.15.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/api/hf/index.js +4 -3
- package/package.json +1 -1
package/kernel/api/hf/index.js
CHANGED
|
@@ -21,15 +21,16 @@ class HF {
|
|
|
21
21
|
*/
|
|
22
22
|
async download(req, ondata, kernel) {
|
|
23
23
|
const shell = new Shell()
|
|
24
|
-
console.log("params before", req.params)
|
|
25
24
|
let params = Object.assign({}, req.params)
|
|
26
25
|
delete params.env
|
|
27
26
|
delete params.path
|
|
28
27
|
let chunks = unparse(params)
|
|
29
|
-
let message =
|
|
28
|
+
let message = [
|
|
29
|
+
`huggingface-cli download ${chunks.join(" ")}`,
|
|
30
|
+
(kernel.platform === "win32" ? "dir" : "ls")
|
|
31
|
+
]
|
|
30
32
|
console.log({ message, before: req.params.message })
|
|
31
33
|
req.params.message = message
|
|
32
|
-
console.log("params after", req.params)
|
|
33
34
|
let res = await shell.run(req, ondata, kernel)
|
|
34
35
|
return res
|
|
35
36
|
}
|