Update app.py
Browse files
app.py
CHANGED
@@ -13,38 +13,39 @@ load_dotenv()
|
|
13 |
logging.basicConfig(level=logging.INFO)
|
14 |
logger = logging.getLogger(__name__)
|
15 |
|
16 |
-
# Configuración de la página
|
17 |
st.set_page_config(
|
18 |
-
page_title="
|
19 |
layout="wide",
|
20 |
-
|
21 |
)
|
22 |
|
23 |
######################
|
24 |
|
25 |
-
#
|
26 |
-
st.
|
27 |
<style>
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
33 |
}
|
34 |
|
35 |
-
/*
|
36 |
-
|
37 |
-
|
38 |
}
|
39 |
</style>
|
40 |
-
""")
|
41 |
|
42 |
# Ahora el logo
|
43 |
-
st.logo(
|
44 |
-
"./assets/img/logo_92x92.png",
|
45 |
-
size="large", # Esto se sobrescribirá con el CSS
|
46 |
-
link="https://aideatext.ai"
|
47 |
-
)
|
48 |
|
49 |
######################
|
50 |
|
|
|
13 |
logging.basicConfig(level=logging.INFO)
|
14 |
logger = logging.getLogger(__name__)
|
15 |
|
16 |
+
# Configuración básica de la página
|
17 |
st.set_page_config(
|
18 |
+
page_title="AIdeaText",
|
19 |
layout="wide",
|
20 |
+
initial_sidebar_state="collapsed" # Para dar más espacio al logo
|
21 |
)
|
22 |
|
23 |
######################
|
24 |
|
25 |
+
# CSS global para la aplicación
|
26 |
+
st.markdown("""
|
27 |
<style>
|
28 |
+
/* Ocultar el menú de hamburguesa */
|
29 |
+
#MainMenu {visibility: hidden;}
|
30 |
+
|
31 |
+
/* Ajustar el padding superior */
|
32 |
+
.main > div:first-child {
|
33 |
+
padding-top: 0;
|
34 |
}
|
35 |
|
36 |
+
/* Estilo para contenedores */
|
37 |
+
.block-container {
|
38 |
+
padding-top: 1rem;
|
39 |
}
|
40 |
</style>
|
41 |
+
""", unsafe_allow_html=True)
|
42 |
|
43 |
# Ahora el logo
|
44 |
+
#st.logo(
|
45 |
+
# "./assets/img/logo_92x92.png",
|
46 |
+
# size="large", # Esto se sobrescribirá con el CSS
|
47 |
+
# link="https://aideatext.ai"
|
48 |
+
#)
|
49 |
|
50 |
######################
|
51 |
|