Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -161,20 +161,22 @@ def main():
|
|
161 |
st.success("¡PDF procesado exitosamente!")
|
162 |
|
163 |
# Botones para preguntas predefinidas con estilo personalizado
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
|
|
|
|
178 |
|
179 |
user_question = st.text_input("Introduce tu pregunta", placeholder="¿Qué quieres saber?")
|
180 |
|
|
|
161 |
st.success("¡PDF procesado exitosamente!")
|
162 |
|
163 |
# Botones para preguntas predefinidas con estilo personalizado
|
164 |
+
with gr.Row():
|
165 |
+
|
166 |
+
st.markdown('<div class="custom-button">', unsafe_allow_html=True)
|
167 |
+
if st.button("Resumen", key="resumen_button"):
|
168 |
+
user_input("Realiza un resumen sobre los aspectos más relevantes comentados en el documento")
|
169 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
170 |
+
|
171 |
+
st.markdown('<div class="custom-button">', unsafe_allow_html=True)
|
172 |
+
if st.button("Entidad", key="entidad_button"):
|
173 |
+
user_input("A qué entidad pertenece el contenido del documento?")
|
174 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
175 |
+
|
176 |
+
st.markdown('<div class="custom-button">', unsafe_allow_html=True)
|
177 |
+
if st.button("Fecha implantación", key="fecha_button"):
|
178 |
+
user_input("En qué fecha se implantará el contenido del documento?")
|
179 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
180 |
|
181 |
user_question = st.text_input("Introduce tu pregunta", placeholder="¿Qué quieres saber?")
|
182 |
|