Update app.py
Browse files
app.py
CHANGED
@@ -20,14 +20,44 @@ st.set_page_config(
|
|
20 |
page_icon="None"
|
21 |
)
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
st.logo(
|
25 |
-
"assets/img/
|
26 |
-
size="
|
27 |
-
link="https://
|
28 |
-
icon_image="assets/img/aideaText-Logo-32x32.png"
|
29 |
)
|
30 |
|
|
|
|
|
|
|
|
|
|
|
31 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
32 |
|
33 |
# Importaciones locales
|
|
|
20 |
page_icon="None"
|
21 |
)
|
22 |
|
23 |
+
######################
|
24 |
+
|
25 |
+
# Primero, definir el CSS personalizado para el logo
|
26 |
+
st.html("""
|
27 |
+
<style>
|
28 |
+
[alt=Logo] {
|
29 |
+
height: 3rem; # Puedes ajustar este valor según necesites
|
30 |
+
max-width: 100%;
|
31 |
+
object-fit: contain;
|
32 |
+
margin: 0.5rem 0;
|
33 |
+
}
|
34 |
+
|
35 |
+
/* Asegura que el logo se ve bien en modo oscuro y claro */
|
36 |
+
[data-testid="stSidebar"] [alt=Logo] {
|
37 |
+
filter: none !important;
|
38 |
+
}
|
39 |
+
</style>
|
40 |
+
""")
|
41 |
+
|
42 |
+
# Configuración de la página
|
43 |
+
st.set_page_config(
|
44 |
+
page_title="AIdeaText",
|
45 |
+
layout="wide",
|
46 |
+
page_icon="./assets/img/aideaText.ico"
|
47 |
+
)
|
48 |
+
|
49 |
+
# Ahora el logo
|
50 |
st.logo(
|
51 |
+
"./assets/img/aideaText_logo.png",
|
52 |
+
size="medium", # Esto se sobrescribirá con el CSS
|
53 |
+
link="https://aideatext.ai"
|
|
|
54 |
)
|
55 |
|
56 |
+
######################
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
62 |
|
63 |
# Importaciones locales
|