delete cache before updating
This commit is contained in:
		
							parent
							
								
									689c704dca
								
							
						
					
					
						commit
						9a3657e6ea
					
				@ -1,3 +1,4 @@
 | 
			
		||||
import GPUtil
 | 
			
		||||
import torch
 | 
			
		||||
import rwkv
 | 
			
		||||
import langchain
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user