Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -256,10 +256,12 @@ with col2:
|
|
256 |
perfil_cliente = re.sub(r'\n\s*\n', '\n\n', perfil_cliente)
|
257 |
perfil_cliente = perfil_cliente.strip()
|
258 |
|
259 |
-
#
|
260 |
-
|
261 |
-
|
262 |
-
|
|
|
|
|
263 |
|
264 |
# Guardar en session_state
|
265 |
st.session_state.perfil_cliente = perfil_cliente
|
@@ -280,8 +282,8 @@ with col2:
|
|
280 |
# Mostrar el t铆tulo
|
281 |
st.markdown("<div class='results-title'>Tu Cliente Ideal</div>", unsafe_allow_html=True)
|
282 |
|
283 |
-
# Mostrar el contenido como
|
284 |
-
st.markdown(st.session_state.perfil_cliente)
|
285 |
|
286 |
# Opci贸n para descargar
|
287 |
st.download_button(
|
|
|
256 |
perfil_cliente = re.sub(r'\n\s*\n', '\n\n', perfil_cliente)
|
257 |
perfil_cliente = perfil_cliente.strip()
|
258 |
|
259 |
+
# Envolver el contenido en un div HTML con estilos
|
260 |
+
perfil_cliente = f"""
|
261 |
+
<div style="font-family: 'Helvetica', 'Arial', sans-serif; line-height: 1.8; text-align: left; padding: 20px; background-color: #f9f9f9; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
|
262 |
+
{perfil_cliente.replace('\n', '<br>')}
|
263 |
+
</div>
|
264 |
+
"""
|
265 |
|
266 |
# Guardar en session_state
|
267 |
st.session_state.perfil_cliente = perfil_cliente
|
|
|
282 |
# Mostrar el t铆tulo
|
283 |
st.markdown("<div class='results-title'>Tu Cliente Ideal</div>", unsafe_allow_html=True)
|
284 |
|
285 |
+
# Mostrar el contenido como HTML
|
286 |
+
st.markdown(st.session_state.perfil_cliente, unsafe_allow_html=True)
|
287 |
|
288 |
# Opci贸n para descargar
|
289 |
st.download_button(
|