thangvip's picture
initial push: M1 Belief Engine + M2 Witness Engine + M3 vertical slice (Cases 1)
f6771af verified
Raw
History Blame Contribute Delete
456 Bytes
"""Dev server: real Witness Engine + FastAPI on uvicorn."""
from __future__ import annotations
import os
import uvicorn
from .app import build_app
from .api import deps
def main():
app = build_app(use_fake_witness=False)
deps.init_real_witness_engine()
host = os.environ.get("HOST", "0.0.0.0")
port = int(os.environ.get("PORT", "7860"))
uvicorn.run(app, host=host, port=port, log_level="info")
if __name__ == "__main__":
main()