from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse
from jinja2 import Environment, DictLoader
app = FastAPI()
# Template HTML con tutti i bottoni
templates = {
"index.html": """
Giorgio's Intelligence
Giorgio's Intelligence
"""
}
env = Environment(loader=DictLoader(templates))
@app.get("/", response_class=HTMLResponse)
async def home(request: Request):
template = env.get_template("index.html")
html = template.render()
return HTMLResponse(content=html)