Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,13 @@ css_style = """
|
|
39 |
border-radius: 5px;
|
40 |
border: 1px solid #ccc;
|
41 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
</style>
|
43 |
"""
|
44 |
|
@@ -129,8 +136,10 @@ def procesar_consulta(user_question):
|
|
129 |
|
130 |
def main():
|
131 |
st.set_page_config(page_title="PDF Consultor 🔍", page_icon="🔍", layout="wide")
|
132 |
-
st.title("PDF Consultor 🔍")
|
133 |
st.markdown(css_style, unsafe_allow_html=True)
|
|
|
|
|
|
|
134 |
|
135 |
# Inicializa estado de sesión
|
136 |
if 'documento_cargado' not in st.session_state:
|
@@ -194,8 +203,7 @@ def main():
|
|
194 |
label_visibility="collapsed"
|
195 |
)
|
196 |
with col2:
|
197 |
-
st.
|
198 |
-
enviar = st.form_submit_button("Enviar ▶")
|
199 |
|
200 |
if user_question and enviar:
|
201 |
procesar_consulta(user_question)
|
|
|
39 |
border-radius: 5px;
|
40 |
border: 1px solid #ccc;
|
41 |
}
|
42 |
+
.titulo-principal {
|
43 |
+
font-size: 24px; /* Reduce el tamaño del título */
|
44 |
+
}
|
45 |
+
.boton-enviar {
|
46 |
+
margin-top: -5px; /* Ajusta la posición vertical del botón */
|
47 |
+
vertical-align: middle;
|
48 |
+
}
|
49 |
</style>
|
50 |
"""
|
51 |
|
|
|
136 |
|
137 |
def main():
|
138 |
st.set_page_config(page_title="PDF Consultor 🔍", page_icon="🔍", layout="wide")
|
|
|
139 |
st.markdown(css_style, unsafe_allow_html=True)
|
140 |
+
|
141 |
+
# Título principal con estilo personalizado
|
142 |
+
st.markdown(f'<h1 class="titulo-principal">PDF Consultor 🔍</h1>', unsafe_allow_html=True)
|
143 |
|
144 |
# Inicializa estado de sesión
|
145 |
if 'documento_cargado' not in st.session_state:
|
|
|
203 |
label_visibility="collapsed"
|
204 |
)
|
205 |
with col2:
|
206 |
+
enviar = st.form_submit_button("Enviar ▶", class_="boton-enviar")
|
|
|
207 |
|
208 |
if user_question and enviar:
|
209 |
procesar_consulta(user_question)
|