-
Notifications
You must be signed in to change notification settings - Fork 4
/
start.js
44 lines (44 loc) · 909 Bytes
/
start.js
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
43
44
module.exports = {
daemon: true,
run:[
{
id: "start",
method: "shell.run",
params: {
conda: {
path: "env",
},
path: "applio",
message: [
"export export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0",
"export PYTORCH_ENABLE_MPS_FALLBACK=1",
"python app.py",
# "/bin/bash run-applio.sh",
],
on: [{
"event": "/http:\/\/\\S+/",
"done": true
}]
}
},
{
method: "local.set",
params: {
url: "{{input.event[0]}}"
}
},
{
method: "proxy.start",
params: {
uri: "{{local.url}}",
name: "Local Sharing"
}
},
{
method: "notify",
params: {
html: "Click the 'Open Web UI' button to open the web interface",
}
}
]
}