Spaces:
Sleeping
Sleeping
Download compile_container.py from omlab/OmAgentVideoUnderstanding: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/spaces/omlab/OmAgentVideoUnderstanding/resolve/main/compile_container.py
- Command line
-
hf download hf://spaces/omlab/OmAgentVideoUnderstanding/compile_container.py
-
curl -L -o compile_container.py https://huggingface.co/spaces/omlab/OmAgentVideoUnderstanding/resolve/main/compile_container.py
633 Bytes
| # Import core modules and components | |
| # Import workflow related modules | |
| from pathlib import Path | |
| from omagent_core.utils.container import container | |
| from omagent_core.utils.registry import registry | |
| # Set up path and import modules | |
| CURRENT_PATH = root_path = Path(__file__).parents[0] | |
| registry.import_module(project_path=CURRENT_PATH.joinpath("agent")) | |
| # Register required components | |
| container.register_callback(callback="DefaultCallback") | |
| container.register_input(input="AppInput") | |
| container.register_stm("SharedMemSTM") | |
| container.register_ltm(ltm="VideoMilvusLTM") | |
| # Compile container config | |
| container.compile_config(CURRENT_PATH) | |