from fastapi import FastAPI from fastapi.responses import HTMLResponse from pydantic import BaseModel from fastapi.staticfiles import StaticFiles # Create FastAPI instance app = FastAPI() # Request model class InputData(BaseModel): text: str # Mount the static folder app.mount("/static", StaticFiles(directory="static"), name="static") # Home Route with HTML page and description @app.get("/", response_class=HTMLResponse) async def home(): html_content = """
Cell1
Cell2
Cell3
Cell4
Cell5
Cell6
Cell7
This is a Solar EL Cell Anomaly Detection AI Model