modal-omniparser

A serverless compute port of the OmniParser vision model for the Modal platform.
git clone https://unitehenry.com/git/modal-omniparser.git
Log | Files | Refs | README

commit f3836ef1f44387e148d896aaa1dbec1f6e71a870
parent 8897f0e70e8b0ecfa9e4ade84454982dc19808af
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 15 Mar 2026 01:43:40 +0000

fix: copy caches

Diffstat:
Mvolume.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/volume.py b/volume.py @@ -11,14 +11,14 @@ def cache(func): CACHE_PATHS = [ ".paddleocr", ".EasyOCR", - ".config/Ultralytics", - ".cache/huggingface/hub", + ".config", + ".cache", ] @wraps(func) def wrapper(*args, **kwargs): for path in CACHE_PATHS: - subprocess.run(["mv", "-f", "--", f"/data/{path}", "/root"], check=False) + subprocess.run(["cp", "-rf", "--", f"/data/{path}", "/root"], check=False) try: return func(*args, **kwargs) @@ -27,7 +27,7 @@ def cache(func): os.makedirs(os.path.dirname(f"/data/{path}"), exist_ok=True) subprocess.run( - ["mv", "-f", "--", f"/root/{path}", f"/data/{path}"], check=False + ["cp", "-rf", "--", f"/root/{path}", f"/data/{path}"], check=False ) omniparser.commit()