Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -4
src/streamlit_app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
# app/streamlit_app.py
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
import sys
|
| 5 |
-
|
| 6 |
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
|
| 7 |
os.makedirs(os.environ["STREAMLIT_CONFIG_DIR"], exist_ok=True)
|
| 8 |
|
| 9 |
-
#
|
| 10 |
SRC_PATH = os.path.join(os.getcwd(), "src")
|
| 11 |
if SRC_PATH not in sys.path:
|
| 12 |
sys.path.append(SRC_PATH)
|
|
@@ -16,6 +15,7 @@ from agent.linkedin_agent import create_agent
|
|
| 16 |
from tools.web_search_tool import get_web_search_tool
|
| 17 |
from agents import Runner
|
| 18 |
|
|
|
|
| 19 |
st.set_page_config(page_title="Buscador de Perfiles LinkedIn", layout="centered")
|
| 20 |
|
| 21 |
# Verificamos que la clave esté presente en entorno
|
|
|
|
| 1 |
# app/streamlit_app.py
|
| 2 |
+
import os, sys
|
| 3 |
|
| 4 |
+
# Redirigir StreamlitConfig a /tmp/.streamlit (evita problema de permisos en '/.streamlit')
|
|
|
|
|
|
|
| 5 |
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
|
| 6 |
os.makedirs(os.environ["STREAMLIT_CONFIG_DIR"], exist_ok=True)
|
| 7 |
|
| 8 |
+
# Añadimos src/ a sys.path para que Python encuentre agent/ y tools/
|
| 9 |
SRC_PATH = os.path.join(os.getcwd(), "src")
|
| 10 |
if SRC_PATH not in sys.path:
|
| 11 |
sys.path.append(SRC_PATH)
|
|
|
|
| 15 |
from tools.web_search_tool import get_web_search_tool
|
| 16 |
from agents import Runner
|
| 17 |
|
| 18 |
+
|
| 19 |
st.set_page_config(page_title="Buscador de Perfiles LinkedIn", layout="centered")
|
| 20 |
|
| 21 |
# Verificamos que la clave esté presente en entorno
|