Spaces:
Sleeping
Sleeping
fangjiang commited on
Commit ·
e5c257a
1
Parent(s): a25ae65
add clean up command and storage track
Browse files
app.py
CHANGED
|
@@ -15,8 +15,13 @@ from classes import CytofImage, CytofCohort, CytofImageTiff
|
|
| 15 |
from cytof.hyperion_preprocess import cytof_read_data_roi
|
| 16 |
from cytof.utils import show_color_table
|
| 17 |
|
|
|
|
| 18 |
import shutil
|
| 19 |
-
shutil.rmtree("/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
OUTDIR = './output'
|
| 22 |
|
|
|
|
| 15 |
from cytof.hyperion_preprocess import cytof_read_data_roi
|
| 16 |
from cytof.utils import show_color_table
|
| 17 |
|
| 18 |
+
# clean up accumulated tmp files
|
| 19 |
import shutil
|
| 20 |
+
shutil.rmtree("/home/user/.cache/huggingface", ignore_errors=True)
|
| 21 |
+
shutil.rmtree("/home/user/.cache/torch", ignore_errors=True)
|
| 22 |
+
|
| 23 |
+
import os
|
| 24 |
+
os.system("du -h --max-depth=2 /home/user/.cache")
|
| 25 |
|
| 26 |
OUTDIR = './output'
|
| 27 |
|