Update app.py
Browse files
app.py
CHANGED
@@ -22,18 +22,28 @@ st.set_page_config(
|
|
22 |
|
23 |
######################
|
24 |
|
25 |
-
#
|
26 |
-
st.
|
27 |
<style>
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
}
|
32 |
-
|
33 |
-
|
|
|
|
|
34 |
}
|
35 |
</style>
|
36 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
######################
|
39 |
|
|
|
22 |
|
23 |
######################
|
24 |
|
25 |
+
# Primero, definir el CSS personalizado para el logo
|
26 |
+
st.html("""
|
27 |
<style>
|
28 |
+
[alt=Logo] {
|
29 |
+
height: 12rem; # 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 |
+
# 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 |
|