Spaces:
Sleeping
Sleeping
| from fastapi import FastAPI, Request | |
| from fastapi.templating import Jinja2Templates | |
| app = FastAPI() | |
| # Define the directory for templates | |
| templates = Jinja2Templates(directory="templates") | |
| async def root(request: Request): | |
| return templates.TemplateResponse( | |
| "index.html", | |
| { | |
| "request": request, | |
| "insurance_cost": 0, | |
| } | |
| ) | |