snikhilesh's picture
Upload folder using huggingface_hub
e4dfd03 verified
raw
history blame
979 Bytes
"""
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)