| 12345678910111213141516171819202122232425262728293031323334 |
- #!/usr/bin/env python3
- """
- InnoCore AI - Simple Run Script
- 研创·智核 - 简单运行脚本
- """
- import os
- import sys
- import uvicorn
- from pathlib import Path
- def main():
- """Run the full InnoCore AI application"""
- print("Starting InnoCore AI...")
-
- # Add current directory to Python path
- current_dir = Path(__file__).parent
- sys.path.insert(0, str(current_dir))
-
- # Start server with the full API
- print("Server will be available at: http://localhost:8000")
- print("API docs at: http://localhost:8000/docs")
- print("Health check at: http://localhost:8000/health")
-
- uvicorn.run(
- "api.main:app",
- host="0.0.0.0",
- port=8000,
- reload=True,
- log_level="info"
- )
- if __name__ == "__main__":
- main()
|