Spaces:
Runtime error
Runtime error
File size: 401 Bytes
58d33f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
"""Script to run langchain-server locally using docker-compose."""
import subprocess
from pathlib import Path
def main() -> None:
"""Run the langchain server locally."""
p = Path(__file__).absolute().parent / "docker-compose.yaml"
subprocess.run(["docker-compose", "-f", str(p), "pull"])
subprocess.run(["docker-compose", "-f", str(p), "up"])
if __name__ == "__main__":
main()
|