Datasets:
Download adapters/evocua/__init__.py from M-Ma/GUI-LongDep: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/datasets/M-Ma/GUI-LongDep/resolve/main/adapters/evocua/__init__.py
- Command line
-
hf download hf://datasets/M-Ma/GUI-LongDep/adapters/evocua/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/M-Ma/GUI-LongDep/resolve/main/adapters/evocua/__init__.py
686 Bytes
| """EvoCUA adapter for GUI-LongDep: prompt construction and reply parsing. | |
| ``prompting.EvoCUAPrompter`` builds the exact request of the reference results (needs Pillow); | |
| ``reply`` converts between dataset steps and EvoCUA replies (standard library only). | |
| The ``osworld`` folder is the EvoCUA agent code vendored from OSWorld-V2 (Apache-2.0). | |
| """ | |
| from .reply import build_reply, to_actions | |
| def __getattr__(name): | |
| # Lazy, so that ``score.py --adapter evocua`` does not need Pillow. | |
| if name == "EvoCUAPrompter": | |
| from .prompting import EvoCUAPrompter | |
| return EvoCUAPrompter | |
| raise AttributeError(name) | |
| __all__ = ["EvoCUAPrompter", "build_reply", "to_actions"] | |