Mardiyyah commited on
Commit
8ed33a3
·
verified ·
1 Parent(s): 0373fe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import torchaudio
 
1
+
2
+ import os
3
+ import shutil
4
+
5
+ # Remove Hugging Face cache at startup
6
+ hf_cache = os.path.expanduser("~/.cache/huggingface")
7
+ if os.path.exists(hf_cache):
8
+ shutil.rmtree(hf_cache)
9
+
10
+
11
  import gradio as gr
12
  import numpy as np
13
  import torchaudio