| """ | |
| Medical Report Analysis Platform - Minimal Bootstrap | |
| """ | |
| from fastapi import FastAPI | |
| from fastapi.responses import JSONResponse | |
| from datetime import datetime | |
| # Initialize FastAPI app | |
| app = FastAPI( | |
| title="Medical Report Analysis Platform", | |
| description="AI-powered medical document analysis", | |
| version="2.0.0" | |
| ) | |
| async def root(): | |
| """Root endpoint""" | |
| return { | |
| "message": "Medical Report Analysis Platform API", | |
| "version": "2.0.0", | |
| "status": "online" | |
| } | |
| async def health_check(): | |
| """Health check endpoint""" | |
| return { | |
| "status": "healthy", | |
| "timestamp": datetime.utcnow().isoformat() | |
| } | |
| async def api_root(): | |
| """API status""" | |
| return { | |
| "status": "healthy", | |
| "version": "2.0.0", | |
| "timestamp": datetime.utcnow().isoformat() | |
| } | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |