Spaces:
Running on Zero
Running on Zero
Download inversion/__init__.py from glarr/Prompt-Reverse-Engineer: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/glarr/Prompt-Reverse-Engineer/resolve/main/inversion/__init__.py
- Command line
-
hf download hf://spaces/glarr/Prompt-Reverse-Engineer/inversion/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/glarr/Prompt-Reverse-Engineer/resolve/main/inversion/__init__.py
652 Bytes
| """Closed-loop DSG + VQA image-to-prompt inversion engine.""" | |
| from .compiler import apply_dependencies, apply_patch, compile_predicates, linearize, prune_hallucinations | |
| from .engine import (Backends, EngineConfig, InversionRun, invert_image_to_verified_prompt, iter_inversion, | |
| save_run) | |
| from .schema import DSGSceneSchema, RewritePatch, SpatialNode | |
| __all__ = [ | |
| "Backends", "DSGSceneSchema", "EngineConfig", "InversionRun", "RewritePatch", "SpatialNode", | |
| "apply_dependencies", "apply_patch", "compile_predicates", "invert_image_to_verified_prompt", | |
| "iter_inversion", "linearize", "prune_hallucinations", "save_run", | |
| ] | |