Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,16 @@ st.markdown("""
|
|
71 |
background-color: #FFD700; /* Color al pasar el mouse */
|
72 |
color: black; /* Texto sigue en negro */
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
</style>
|
75 |
""", unsafe_allow_html=True)
|
76 |
|
@@ -102,7 +112,7 @@ if submit:
|
|
102 |
try:
|
103 |
response = get_gemini_response(target_audience, product, product_mention, mood, model_choice)
|
104 |
col2.subheader("Contenido generado:")
|
105 |
-
col2.
|
106 |
except ValueError as e:
|
107 |
col2.error(f"Error: {str(e)}")
|
108 |
else:
|
|
|
71 |
background-color: #FFD700; /* Color al pasar el mouse */
|
72 |
color: black; /* Texto sigue en negro */
|
73 |
}
|
74 |
+
.response-container {
|
75 |
+
max-width: 800px; /* Limitar el ancho del contenedor de respuesta */
|
76 |
+
margin: 0 auto; /* Centrar el contenedor */
|
77 |
+
padding: 20px; /* Espaciado interno */
|
78 |
+
border: 1px solid #ccc; /* Borde suave */
|
79 |
+
border-radius: 10px; /* Bordes redondeados */
|
80 |
+
background-color: #f9f9f9; /* Color de fondo claro */
|
81 |
+
font-size: 16px; /* Tamaño de texto */
|
82 |
+
overflow-wrap: break-word; /* Permitir que el texto se ajuste */
|
83 |
+
}
|
84 |
</style>
|
85 |
""", unsafe_allow_html=True)
|
86 |
|
|
|
112 |
try:
|
113 |
response = get_gemini_response(target_audience, product, product_mention, mood, model_choice)
|
114 |
col2.subheader("Contenido generado:")
|
115 |
+
col2.markdown(f"<div class='response-container'>{response}</div>", unsafe_allow_html=True) # Usar el contenedor con estilo
|
116 |
except ValueError as e:
|
117 |
col2.error(f"Error: {str(e)}")
|
118 |
else:
|