forked from cocktailpeanut/tokenflow.pinokio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.json
86 lines (85 loc) · 1.89 KB
/
install.json
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"cmds": {
"nvidia": "pip install torch torchvision torchaudio xformers --index-url https://download.pytorch.org/whl/cu118",
"cpu": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu"
},
"run": [
{
"method": "shell.run",
"params": {
"message": "git lfs install"
}
},
{
"method": "shell.run",
"params": {
"message": "git clone https://huggingface.co/spaces/cocktailpeanut/tokenflow"
}
},
{
"method": "shell.run",
"params": {
"message": "{{os.platform() === 'win32' ? 'python' : 'python3'}} -m venv env",
"path": "tokenflow"
}
},
{
"method": "shell.start",
"params": {
"path": "tokenflow",
"env": {
"HF_HOME": "../huggingface"
}
}
},
{
"method": "shell.enter",
"params": {
"message": "{{os.platform() === 'win32' ? 'env\\\\Scripts\\\\activate env' : 'source env/bin/activate env'}}",
"on": [
{
"event": null,
"return": true
}
]
}
},
{
"method": "shell.enter",
"params": {
"message": "{{gpu === 'nvidia' ? self.cmds.nvidia : self.cmds.cpu}}",
"on": [
{
"event": null,
"return": true
}
]
}
},
{
"method": "shell.enter",
"params": {
"message": "pip install -r requirements.txt",
"on": [
{
"event": null,
"return": true
}
]
}
},
{
"method": "input",
"params": {
"title": "Install Success",
"description": "Go back to the dashboard and launch the app!"
}
},
{
"method": "browser.open",
"params": {
"uri": "/?selected=Tokenflow"
}
}
]
}