Spaces:
Runtime error
Runtime error
File size: 1,854 Bytes
2965f38 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
<!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>
|