forked from Blizaine/Maestro
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart_classic.js
More file actions
42 lines (42 loc) · 1.17 KB
/
Copy pathstart_classic.js
File metadata and controls
42 lines (42 loc) · 1.17 KB
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
36
37
38
39
40
41
42
module.exports = async (kernel) => {
let port = await kernel.port()
// SERVER_NAME intentionally not set — wgp.py defaults to "localhost"
// when SERVER_NAME isn't in the env. The classic UI is the legacy
// secondary surface (Gradio); we don't surface a PINOKIO_SHARE_LOCAL
// path here because (a) it would require patching upstream wgp.py
// (intrusive / conflict risk on every Wan2GP sync) and (b) the
// canonical UI is launch.py which DOES honor PINOKIO_SHARE_LOCAL
// properly. Users who need LAN-shared classic can use the listen
// flag manually via the Pinokio CLI.
return {
requires: {
bundle: "ai",
},
daemon: true,
run: [
{
method: "shell.run",
params: {
venv: "env",
env: {
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[1]}}"
}
}
]
}
}