Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def responder(mensaje):
|
|
| 34 |
return f"❌ Error: {str(e)}"
|
| 35 |
|
| 36 |
# ============================================================
|
| 37 |
-
# ✅ INTERFAZ
|
| 38 |
# ============================================================
|
| 39 |
with gr.Blocks(
|
| 40 |
title="TAILA — IA Conversacional",
|
|
@@ -66,7 +66,7 @@ with gr.Blocks(
|
|
| 66 |
margin: 20px auto !important;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
/* ENCABEZADO SUPERIOR
|
| 70 |
.header {
|
| 71 |
background-color: #075e54 !important;
|
| 72 |
color: white !important;
|
|
@@ -146,18 +146,24 @@ with gr.Blocks(
|
|
| 146 |
gap: 8px !important;
|
| 147 |
flex-shrink: 0 !important;
|
| 148 |
}
|
| 149 |
-
|
|
|
|
|
|
|
| 150 |
background: none !important;
|
| 151 |
border: none !important;
|
| 152 |
-
|
|
|
|
| 153 |
cursor: pointer !important;
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
transition:
|
|
|
|
| 157 |
}
|
| 158 |
-
.bottom-bar .
|
| 159 |
-
|
| 160 |
}
|
|
|
|
|
|
|
| 161 |
.bottom-bar .input-field {
|
| 162 |
flex: 1 !important;
|
| 163 |
padding: 8px 12px !important;
|
|
@@ -172,19 +178,8 @@ with gr.Blocks(
|
|
| 172 |
border-color: #075e54 !important;
|
| 173 |
box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.2) !important;
|
| 174 |
}
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
border: none !important;
|
| 178 |
-
color: #075e54 !important;
|
| 179 |
-
font-weight: 500 !important;
|
| 180 |
-
cursor: pointer !important;
|
| 181 |
-
padding: 4px 12px !important;
|
| 182 |
-
font-size: 0.85rem !important;
|
| 183 |
-
transition: opacity 0.2s !important;
|
| 184 |
-
}
|
| 185 |
-
.bottom-bar .clean-btn:hover {
|
| 186 |
-
opacity: 0.7 !important;
|
| 187 |
-
}
|
| 188 |
.bottom-bar .send-btn {
|
| 189 |
background-color: #075e54 !important;
|
| 190 |
border: none !important;
|
|
@@ -200,6 +195,7 @@ with gr.Blocks(
|
|
| 200 |
transition: background 0.2s, transform 0.2s !important;
|
| 201 |
padding: 0 !important;
|
| 202 |
min-width: 38px !important;
|
|
|
|
| 203 |
}
|
| 204 |
.bottom-bar .send-btn:hover {
|
| 205 |
background-color: #0a7a6e !important;
|
|
@@ -230,9 +226,9 @@ with gr.Blocks(
|
|
| 230 |
container=False
|
| 231 |
)
|
| 232 |
|
| 233 |
-
# === BARRA INFERIOR
|
| 234 |
with gr.Row(elem_classes="bottom-bar"):
|
| 235 |
-
gr.
|
| 236 |
msg = gr.Textbox(
|
| 237 |
placeholder="Escribe un mensaje...",
|
| 238 |
label="",
|
|
@@ -241,7 +237,6 @@ with gr.Blocks(
|
|
| 241 |
container=False,
|
| 242 |
scale=0
|
| 243 |
)
|
| 244 |
-
limpiar = gr.Button("Limpiar", elem_classes="clean-btn", variant="secondary", scale=0)
|
| 245 |
enviar = gr.Button("➤", elem_classes="send-btn", variant="primary", scale=0)
|
| 246 |
|
| 247 |
estado = gr.State([])
|
|
|
|
| 34 |
return f"❌ Error: {str(e)}"
|
| 35 |
|
| 36 |
# ============================================================
|
| 37 |
+
# ✅ INTERFAZ SIMPLIFICADA: SOLO CAMPO, LIMPIAR Y ENVIAR
|
| 38 |
# ============================================================
|
| 39 |
with gr.Blocks(
|
| 40 |
title="TAILA — IA Conversacional",
|
|
|
|
| 66 |
margin: 20px auto !important;
|
| 67 |
}
|
| 68 |
|
| 69 |
+
/* ENCABEZADO SUPERIOR */
|
| 70 |
.header {
|
| 71 |
background-color: #075e54 !important;
|
| 72 |
color: white !important;
|
|
|
|
| 146 |
gap: 8px !important;
|
| 147 |
flex-shrink: 0 !important;
|
| 148 |
}
|
| 149 |
+
|
| 150 |
+
/* BOTÓN LIMPIAR (IZQUIERDA) */
|
| 151 |
+
.bottom-bar .clean-btn {
|
| 152 |
background: none !important;
|
| 153 |
border: none !important;
|
| 154 |
+
color: #075e54 !important;
|
| 155 |
+
font-weight: 500 !important;
|
| 156 |
cursor: pointer !important;
|
| 157 |
+
padding: 4px 12px !important;
|
| 158 |
+
font-size: 0.85rem !important;
|
| 159 |
+
transition: opacity 0.2s !important;
|
| 160 |
+
flex-shrink: 0 !important;
|
| 161 |
}
|
| 162 |
+
.bottom-bar .clean-btn:hover {
|
| 163 |
+
opacity: 0.7 !important;
|
| 164 |
}
|
| 165 |
+
|
| 166 |
+
/* CAMPO DE TEXTO (CENTRO) */
|
| 167 |
.bottom-bar .input-field {
|
| 168 |
flex: 1 !important;
|
| 169 |
padding: 8px 12px !important;
|
|
|
|
| 178 |
border-color: #075e54 !important;
|
| 179 |
box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.2) !important;
|
| 180 |
}
|
| 181 |
+
|
| 182 |
+
/* BOTÓN ENVIAR (DERECHA) */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
.bottom-bar .send-btn {
|
| 184 |
background-color: #075e54 !important;
|
| 185 |
border: none !important;
|
|
|
|
| 195 |
transition: background 0.2s, transform 0.2s !important;
|
| 196 |
padding: 0 !important;
|
| 197 |
min-width: 38px !important;
|
| 198 |
+
flex-shrink: 0 !important;
|
| 199 |
}
|
| 200 |
.bottom-bar .send-btn:hover {
|
| 201 |
background-color: #0a7a6e !important;
|
|
|
|
| 226 |
container=False
|
| 227 |
)
|
| 228 |
|
| 229 |
+
# === BARRA INFERIOR SIMPLIFICADA ===
|
| 230 |
with gr.Row(elem_classes="bottom-bar"):
|
| 231 |
+
limpiar = gr.Button("Limpiar", elem_classes="clean-btn", variant="secondary", scale=0)
|
| 232 |
msg = gr.Textbox(
|
| 233 |
placeholder="Escribe un mensaje...",
|
| 234 |
label="",
|
|
|
|
| 237 |
container=False,
|
| 238 |
scale=0
|
| 239 |
)
|
|
|
|
| 240 |
enviar = gr.Button("➤", elem_classes="send-btn", variant="primary", scale=0)
|
| 241 |
|
| 242 |
estado = gr.State([])
|