Spaces:
Running
Running
Update app.py
Browse files
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
|