forked from 6Morpheus6/wan2gp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.js
More file actions
35 lines (35 loc) · 710 Bytes
/
Copy pathstart.js
File metadata and controls
35 lines (35 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = async (kernel) => {
let port = await kernel.port()
return {
requires: {
bundle: "ai",
},
daemon: true,
run: [
{
method: "shell.run",
params: {
venv: "env",
env: {
SERVER_NAME: "127.0.0.1",
SERVER_PORT: port
},
path: "app",
message: [
"python wgp.py --multiple-images {{args.compile ? '--compile' : ''}}"
],
on: [{
"event": "/http:\/\/[0-9.:]+/",
"done": true
}]
}
},
{
method: "local.set",
params: {
url: "{{input.event[0]}}"
}
}
]
}
}