Spaces:
Sleeping
Sleeping
File size: 979 Bytes
023df37 e4dfd03 023df37 e4dfd03 023df37 e4dfd03 996387b 023df37 e4dfd03 023df37 e4dfd03 023df37 e4dfd03 023df37 e4dfd03 023df37 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
"""
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"
)
@app.get("/")
async def root():
"""Root endpoint"""
return {
"message": "Medical Report Analysis Platform API",
"version": "2.0.0",
"status": "online"
}
@app.get("/health")
async def health_check():
"""Health check endpoint"""
return {
"status": "healthy",
"timestamp": datetime.utcnow().isoformat()
}
@app.get("/api")
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)
|