Update app.py
Browse files
app.py
CHANGED
@@ -12,30 +12,15 @@ load_dotenv()
|
|
12 |
st.set_page_config(
|
13 |
page_title="AIdeaText",
|
14 |
layout="wide",
|
15 |
-
page_icon="./assets/images/aideaText_icon.ico"
|
|
|
16 |
|
17 |
# Definir rutas de los archivos
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
try:
|
24 |
-
if os.path.exists(LOGO_PATH):
|
25 |
-
# Para un logo cuadrado, usamos la misma imagen para ambos parámetros
|
26 |
-
st.logo(
|
27 |
-
image=LOGO_PATH,
|
28 |
-
icon_image=LOGO_PATH, # Mismo archivo para ambos usos
|
29 |
-
size="medium", # "small", "medium", o "large"
|
30 |
-
link="https://aideatext.ai" # Opcional: URL al hacer clic
|
31 |
-
)
|
32 |
-
return True
|
33 |
-
else:
|
34 |
-
logger.warning("Logo file not found")
|
35 |
-
return False
|
36 |
-
except Exception as e:
|
37 |
-
logger.error(f"Error setting up logo: {str(e)}")
|
38 |
-
return False
|
39 |
|
40 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
41 |
|
|
|
12 |
st.set_page_config(
|
13 |
page_title="AIdeaText",
|
14 |
layout="wide",
|
15 |
+
page_icon="./assets/images/aideaText_icon.ico"
|
16 |
+
)
|
17 |
|
18 |
# Definir rutas de los archivos
|
19 |
+
st.logo(
|
20 |
+
"https://huggingface.co/spaces/AIdeaText/v3/blob/main/assets/img/Logo32x32.png",
|
21 |
+
link="assets/img/Logo32x32.png",
|
22 |
+
icon_image= "https://huggingface.co/spaces/AIdeaText/v3/blob/main/assets/img/Logo20x20.png",
|
23 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
26 |
|