Spaces:
Sleeping
Sleeping
Update backend/app.py
Browse files12345678910111213910141516import osimport shutil
for d in ["/tmp/huggingface", "/tmp/Ultralytics", "/tmp/matplotlib", "/tmp/torch", "/root/.cache"]: shutil.rmtree(d, ignore_errors=True) os.environ["HF_HOME"] = "/tmp/huggingface"os.environ["HUGGINGFACE_HUB_CACHE"] = "/tmp/huggingface"os.environ["TORCH_HOME"] = "/tmp/torch"os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"os.environ["YOLO_CONFIG_DIR"] = "/tmp/Ultralytics"
for d in ["/tmp/huggingface", "/tmp/Ultralytics", "/tmp/matplotlib", "/tmp/torch", "/root/.cache"]: shutil.rmtree(d, ignore_errors=True)
from huggingface_hub import login
backend/app.py+5-2