1
0

run.py 784 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python3
  2. """
  3. InnoCore AI - Simple Run Script
  4. 研创·智核 - 简单运行脚本
  5. """
  6. import os
  7. import sys
  8. import uvicorn
  9. from pathlib import Path
  10. def main():
  11. """Run the full InnoCore AI application"""
  12. print("Starting InnoCore AI...")
  13. # Add current directory to Python path
  14. current_dir = Path(__file__).parent
  15. sys.path.insert(0, str(current_dir))
  16. # Start server with the full API
  17. print("Server will be available at: http://localhost:8000")
  18. print("API docs at: http://localhost:8000/docs")
  19. print("Health check at: http://localhost:8000/health")
  20. uvicorn.run(
  21. "api.main:app",
  22. host="0.0.0.0",
  23. port=8000,
  24. reload=True,
  25. log_level="info"
  26. )
  27. if __name__ == "__main__":
  28. main()