Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,17 +13,20 @@ import re
|
|
13 |
load_dotenv()
|
14 |
os.getenv("GROQ_API_KEY")
|
15 |
|
16 |
-
|
17 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
.step-number { font-size: 24px; font-weight: bold; }
|
19 |
-
.response-box { padding: 20px; background-color: #f8f9fa; border-radius: 10px; border-left: 5px solid #252850; margin: 20px 0;
|
20 |
.metadata-box { padding: 20px; background-color: #f0f2f6; border-radius: 10px; margin-bottom: 20px; }
|
21 |
-
.custom-input { font-size: 16px; padding: 10px; border-radius: 5px; border: 1px solid #ccc; }
|
22 |
-
.suggestion-container { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin: 10px 0; background: #f8f9fa; }
|
23 |
-
.suggestion-btn { width: 100%; margin: 3px 0; padding: 8px; border-radius: 5px; border: 1px solid #252850; background: white; cursor: pointer; transition: all 0.2s; }
|
24 |
-
.suggestion-btn:hover { background: #252850; color: white; }
|
25 |
</style>
|
26 |
-
"""
|
27 |
|
28 |
def eliminar_proceso_pensamiento(texto):
|
29 |
texto_limpio = re.sub(r'<.*?>', '', texto, flags=re.DOTALL)
|
@@ -146,8 +149,7 @@ def procesar_consulta(user_question):
|
|
146 |
|
147 |
def main():
|
148 |
st.set_page_config(page_title="PDF Consultor 🔍", page_icon="🔍", layout="wide")
|
149 |
-
st.
|
150 |
-
st.markdown(css_style, unsafe_allow_html=True)
|
151 |
|
152 |
estados = {
|
153 |
'documento_cargado': False,
|
@@ -203,7 +205,7 @@ def main():
|
|
203 |
with st.container():
|
204 |
st.markdown("""
|
205 |
<div class="suggestion-container">
|
206 |
-
<div style="font-size:
|
207 |
""", unsafe_allow_html=True)
|
208 |
|
209 |
cols_sugerencias = st.columns(3)
|
|
|
13 |
load_dotenv()
|
14 |
os.getenv("GROQ_API_KEY")
|
15 |
|
16 |
+
st.markdown("""
|
17 |
<style>
|
18 |
+
.main-title {
|
19 |
+
font-size: 28px; /* Reducir tamaño del texto */
|
20 |
+
margin-top: -20px; /* Reducir espacio superior */
|
21 |
+
margin-bottom: 10px; /* Reducir espacio inferior */
|
22 |
+
text-align: center;
|
23 |
+
color: #252850;
|
24 |
+
}
|
25 |
.step-number { font-size: 24px; font-weight: bold; }
|
26 |
+
.response-box { padding: 20px; background-color: #f8f9fa; border-radius: 10px; border-left: 5px solid #252850; margin: 20px 0; }
|
27 |
.metadata-box { padding: 20px; background-color: #f0f2f6; border-radius: 10px; margin-bottom: 20px; }
|
|
|
|
|
|
|
|
|
28 |
</style>
|
29 |
+
""", unsafe_allow_html=True)
|
30 |
|
31 |
def eliminar_proceso_pensamiento(texto):
|
32 |
texto_limpio = re.sub(r'<.*?>', '', texto, flags=re.DOTALL)
|
|
|
149 |
|
150 |
def main():
|
151 |
st.set_page_config(page_title="PDF Consultor 🔍", page_icon="🔍", layout="wide")
|
152 |
+
st.markdown('<h1 class="main-title">PDF Consultor 🔍</h1>', unsafe_allow_html=True)
|
|
|
153 |
|
154 |
estados = {
|
155 |
'documento_cargado': False,
|
|
|
205 |
with st.container():
|
206 |
st.markdown("""
|
207 |
<div class="suggestion-container">
|
208 |
+
<div style="font-size:18px; color:#666; margin-bottom:8px;">💡 ¿Necesitas ideas?</div>
|
209 |
""", unsafe_allow_html=True)
|
210 |
|
211 |
cols_sugerencias = st.columns(3)
|