run.py 413 B

1234567891011121314151617181920212223
  1. """Start the SupplyAgent API on port 8080."""
  2. from __future__ import annotations
  3. import logging
  4. import uvicorn
  5. def main() -> None:
  6. logging.basicConfig(
  7. level=logging.INFO,
  8. format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
  9. )
  10. uvicorn.run(
  11. "api.app:app",
  12. host="0.0.0.0",
  13. port=8080,
  14. reload=False,
  15. )
  16. if __name__ == "__main__":
  17. main()