delete cache before updating
This commit is contained in:
parent
689c704dca
commit
9a3657e6ea
@ -1,3 +1,4 @@
|
|||||||
|
import GPUtil
|
||||||
import torch
|
import torch
|
||||||
import rwkv
|
import rwkv
|
||||||
import langchain
|
import langchain
|
||||||
|
@ -190,6 +190,7 @@ export function forceDownloadProgramFiles() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function deleteDynamicProgramFiles() {
|
export function deleteDynamicProgramFiles() {
|
||||||
|
DeleteFile('cache.json');
|
||||||
manifest.programFiles.forEach(({ path }) => {
|
manifest.programFiles.forEach(({ path }) => {
|
||||||
if ((path.endsWith('.py') && !path.includes('get-pip.py')) || path.includes('requirements'))
|
if ((path.endsWith('.py') && !path.includes('get-pip.py')) || path.includes('requirements'))
|
||||||
DeleteFile(path);
|
DeleteFile(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user