BoltzGen / scripts /boltzgen.py
wuxing0105's picture
Upload folder using huggingface_hub (part 2)
1f88cea verified
Raw
History Blame Contribute Delete
501 Bytes
#!/usr/bin/env python3
"""Run the bundled BoltzGen CLI without installing the source package."""
from __future__ import annotations
import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
MODEL_DIR = ROOT / "model"
sys.path.insert(0, str(MODEL_DIR))
os.environ["PYTHONPATH"] = os.pathsep.join(
[str(MODEL_DIR), os.environ.get("PYTHONPATH", "")]
).rstrip(os.pathsep)
from boltzgen.cli.boltzgen import main # noqa: E402
if __name__ == "__main__":
main()