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

🎨 Genera Immagini 🎥 Genera Video 🧊 Genera 3D 🎵 Genera Musica 🗣️ Sintetizza Voce 📊 Crea Grafici 📋 Crea Tabelle 💬 Conversazione ✍️ Genera Testo 📚 Riassunto ❓ Rispondi a Domande
""" } 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)