Spaces:
Build error
Build error
File size: 868 Bytes
de59d95 |
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 |
module.exports = {
run: [{
method: "shell.run",
params: {
message: "git pull"
}
}, {
method: "shell.run",
params: {
path: "sd-scripts",
message: "git pull"
}
}, {
method: "shell.run",
params: {
path: "sd-scripts",
venv: "../env",
message: [
"pip install -r requirements.txt",
]
}
}, {
method: "shell.run",
params: {
venv: "env",
message: [
"pip uninstall -y diffusers[torch] torch torchaudio torchvision",
"pip install -r requirements.txt",
]
}
}, {
method: "script.start",
params: {
uri: "torch.js",
params: {
venv: "env",
// xformers: true // uncomment this line if your project requires xformers
}
}
}, {
method: "fs.link",
params: {
venv: "env"
}
}]
}
|