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 17ad76211aa333e8a55af326b16bd205b98de84b
parent bc1bd91fcdc617b565ea3fc7b16b7dc5248101d8
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 15 Mar 2026 01:27:44 +0000

refactor: omniparser volume

Diffstat:
Mparse.py | 2+-
Mvolume.py | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parse.py b/parse.py @@ -4,7 +4,7 @@ import volume @app.app.function( - gpu="h100", image=image.omniparser_v2_0_1, volumes={"/data": volume.vol} + gpu="h100", image=image.omniparser_v2_0_1, volumes={"/data": volume.omniparser} ) @volume.cache def parse(file_url: str): diff --git a/volume.py b/volume.py @@ -1,7 +1,7 @@ import modal from functools import wraps -vol = modal.Volume.from_name("omniparser", create_if_missing=True) +omniparser = modal.Volume.from_name("omniparser", create_if_missing=True) def cache(func): @@ -30,6 +30,6 @@ def cache(func): ["mv", "-f", "--", f"/root/{path}", f"/data/{path}"], check=False ) - vol.commit() + omniparser.commit() return wrapper