cakemus commited on
Commit
d7b99e1
·
1 Parent(s): 81ce1d6

os cache clearing

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -3,6 +3,14 @@ import gradio as gr
3
  from diffusers import StableVideoDiffusionPipeline
4
  from diffusers.utils import load_image, export_to_video
5
  import spaces
 
 
 
 
 
 
 
 
6
 
7
  # Check if GPU is available
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
3
  from diffusers import StableVideoDiffusionPipeline
4
  from diffusers.utils import load_image, export_to_video
5
  import spaces
6
+ import os
7
+
8
+ # Check disk usage
9
+ os.system("df -h")
10
+
11
+ # Clear Hugging Face cache
12
+ os.system("rm -rf ~/.cache/huggingface")
13
+ os.system("rm -rf ~/.cache/transformers")
14
 
15
  # Check if GPU is available
16
  device = "cuda" if torch.cuda.is_available() else "cpu"