from fastapi import FastAPI from fastapi.responses import HTMLResponse import logging # Set up logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) # Initialize FastAPI app app = FastAPI() # Serve HTML page @app.get("/", response_class=HTMLResponse) async def serve_html(): logger.info("Serving HTML page") return """ AI Chemistry Chat

AI Chemistry Chat

""" # Health check endpoint @app.get("/health") async def health(): logger.info("Health check requested") return {"status": "healthy"}