immune-lattice / server.py
betterwithage's picture
deploy: source-bound IMMUNE lattice 74d91d9fb5bb
e1f1625 verified
Raw
History Blame Contribute Delete
448 Bytes
#!/usr/bin/env python3
"""HF Space entry — Hub flatten copies this to /server.py."""
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent
for candidate in (ROOT, ROOT.parent, Path("/app")):
if (candidate / "immune" / "runtime.py").exists():
sys.path.insert(0, str(candidate))
break
from immune.server import main # noqa: E402
if __name__ == "__main__":
main()