<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Chat IA - Conciencia de Clase</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f4; } .container { max-width: 800px; margin: 50px auto; padding: 20px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; } form { margin-top: 20px; } input[type="text"], textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; } button { padding: 10px 15px; background-color: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; } .response { background-color: #e9ecef; padding: 15px; border-radius: 4px; margin-top: 20px; } </style> </head> <body> <div class="container"> <h1>Conciencia de Clase Chat IA</h1> <form action="/chat" method="POST"> <label for="prompt">Haz una pregunta sobre la conciencia de clase:</label> <textarea id="prompt" name="prompt" rows="3" placeholder="Escribe tu pregunta aquĆ..."></textarea> <button type="submit">Enviar</button> </form> {% if response %} <div class="response"> <h3>Respuesta del modelo:</h3> <p>{{ response }}</p> </div> {% endif %} </div> </body> </html>