Spaces:
Sleeping
Sleeping
fangjiang
commited on
Commit
·
86a85be
1
Parent(s):
f9f3ea6
add clean up command and storage track
Browse files
app.py
CHANGED
|
@@ -15,10 +15,6 @@ 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 |
-
# clean up accumulated tmp files
|
| 19 |
-
import shutil
|
| 20 |
-
shutil.rmtree("/home/user/.cache", ignore_errors=True)
|
| 21 |
-
|
| 22 |
# prevent future cache growth
|
| 23 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
| 24 |
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers"
|
|
|
|
| 15 |
from cytof.hyperion_preprocess import cytof_read_data_roi
|
| 16 |
from cytof.utils import show_color_table
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# prevent future cache growth
|
| 19 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
| 20 |
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers"
|