Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,6 @@ import os
|
|
7 |
from dotenv import load_dotenv
|
8 |
from datetime import datetime
|
9 |
|
10 |
-
st.set_page_config(page_title="AIdeaText", layout="wide", page_icon="random")
|
11 |
-
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
12 |
-
setup_logging()
|
13 |
-
load_dotenv()
|
14 |
-
|
15 |
def setup_logging():
|
16 |
log_dir = 'logs'
|
17 |
if not os.path.exists(log_dir):
|
@@ -31,6 +26,19 @@ def setup_logging():
|
|
31 |
logging.getLogger('').addHandler(console)
|
32 |
logging.info(f"Logging iniciado. Archivo de log: {log_filename}")
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
#########IMPORTACIONES LOCALES#######################################
|
35 |
from translations import get_translations
|
36 |
|
|
|
7 |
from dotenv import load_dotenv
|
8 |
from datetime import datetime
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
def setup_logging():
|
11 |
log_dir = 'logs'
|
12 |
if not os.path.exists(log_dir):
|
|
|
26 |
logging.getLogger('').addHandler(console)
|
27 |
logging.info(f"Logging iniciado. Archivo de log: {log_filename}")
|
28 |
|
29 |
+
# Configuraci贸n de la p谩gina de Streamlit
|
30 |
+
st.set_page_config(page_title="AIdeaText", layout="wide", page_icon="random")
|
31 |
+
|
32 |
+
# Agregar el directorio actual al path de Python
|
33 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
34 |
+
sys.path.append(current_dir)
|
35 |
+
|
36 |
+
# Configurar logging
|
37 |
+
setup_logging()
|
38 |
+
|
39 |
+
# Cargar variables de entorno
|
40 |
+
load_dotenv()
|
41 |
+
|
42 |
#########IMPORTACIONES LOCALES#######################################
|
43 |
from translations import get_translations
|
44 |
|