delete cache before updating

This commit is contained in:
josc146 2023-05-23 12:37:13 +08:00
parent 689c704dca
commit 9a3657e6ea
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import GPUtil
import torch
import rwkv
import langchain

View File

@ -190,6 +190,7 @@ export function forceDownloadProgramFiles() {
}
export function deleteDynamicProgramFiles() {
DeleteFile('cache.json');
manifest.programFiles.forEach(({ path }) => {
if ((path.endsWith('.py') && !path.includes('get-pip.py')) || path.includes('requirements'))
DeleteFile(path);