Spaces:
Runtime error
Runtime error
carlosdimare
commited on
Commit
•
2965f38
1
Parent(s):
b085ffd
Create index.html
Browse files- index.html +67 -0
index.html
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Chat IA - Conciencia de Clase</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
margin: 0;
|
11 |
+
padding: 0;
|
12 |
+
background-color: #f4f4f4;
|
13 |
+
}
|
14 |
+
.container {
|
15 |
+
max-width: 800px;
|
16 |
+
margin: 50px auto;
|
17 |
+
padding: 20px;
|
18 |
+
background-color: #fff;
|
19 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
20 |
+
}
|
21 |
+
h1 {
|
22 |
+
text-align: center;
|
23 |
+
}
|
24 |
+
form {
|
25 |
+
margin-top: 20px;
|
26 |
+
}
|
27 |
+
input[type="text"], textarea {
|
28 |
+
width: 100%;
|
29 |
+
padding: 10px;
|
30 |
+
margin-bottom: 10px;
|
31 |
+
border: 1px solid #ccc;
|
32 |
+
border-radius: 4px;
|
33 |
+
}
|
34 |
+
button {
|
35 |
+
padding: 10px 15px;
|
36 |
+
background-color: #28a745;
|
37 |
+
color: white;
|
38 |
+
border: none;
|
39 |
+
border-radius: 4px;
|
40 |
+
cursor: pointer;
|
41 |
+
}
|
42 |
+
.response {
|
43 |
+
background-color: #e9ecef;
|
44 |
+
padding: 15px;
|
45 |
+
border-radius: 4px;
|
46 |
+
margin-top: 20px;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
</head>
|
50 |
+
<body>
|
51 |
+
<div class="container">
|
52 |
+
<h1>Conciencia de Clase Chat IA</h1>
|
53 |
+
<form action="/chat" method="POST">
|
54 |
+
<label for="prompt">Haz una pregunta sobre la conciencia de clase:</label>
|
55 |
+
<textarea id="prompt" name="prompt" rows="3" placeholder="Escribe tu pregunta aquí..."></textarea>
|
56 |
+
<button type="submit">Enviar</button>
|
57 |
+
</form>
|
58 |
+
|
59 |
+
{% if response %}
|
60 |
+
<div class="response">
|
61 |
+
<h3>Respuesta del modelo:</h3>
|
62 |
+
<p>{{ response }}</p>
|
63 |
+
</div>
|
64 |
+
{% endif %}
|
65 |
+
</div>
|
66 |
+
</body>
|
67 |
+
</html>
|