Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,34 +22,12 @@ st.set_page_config(
|
|
| 22 |
|
| 23 |
######################
|
| 24 |
|
| 25 |
-
# Primero, definir el CSS personalizado para el logo
|
| 26 |
-
st.html("""
|
| 27 |
-
<style>
|
| 28 |
-
[alt=Logo] {
|
| 29 |
-
height: 6rem;
|
| 30 |
-
max-width: 100%;
|
| 31 |
-
object-fit: contain;
|
| 32 |
-
margin: -9rem 0;
|
| 33 |
-
}
|
| 34 |
-
[data-testid="stSidebar"] [alt=Logo] {
|
| 35 |
-
filter: none !important;
|
| 36 |
-
}
|
| 37 |
-
</style>
|
| 38 |
-
""")
|
| 39 |
-
|
| 40 |
-
# Ahora el logo
|
| 41 |
-
st.logo(
|
| 42 |
-
"./assets/img/logo_92x92.png",
|
| 43 |
-
size="large", # Esto se sobrescribirá con el CSS
|
| 44 |
-
link="https://aideatext-v3.hf.space"
|
| 45 |
-
)
|
| 46 |
-
|
| 47 |
######################
|
| 48 |
|
| 49 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 50 |
|
| 51 |
# Importaciones locales
|
| 52 |
-
from translations import get_translations
|
| 53 |
from session_state import initialize_session_state
|
| 54 |
from modules.ui.ui import main as ui_main
|
| 55 |
from modules.utils.spacy_utils import load_spacy_models
|
|
|
|
| 22 |
|
| 23 |
######################
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
######################
|
| 26 |
|
| 27 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 28 |
|
| 29 |
# Importaciones locales
|
| 30 |
+
from translations import get_translations, get_landing_translations
|
| 31 |
from session_state import initialize_session_state
|
| 32 |
from modules.ui.ui import main as ui_main
|
| 33 |
from modules.utils.spacy_utils import load_spacy_models
|