Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +9 -2
src/streamlit_app.py
CHANGED
|
@@ -1,13 +1,20 @@
|
|
| 1 |
# app/streamlit_app.py
|
| 2 |
|
| 3 |
import os
|
|
|
|
| 4 |
|
| 5 |
-
os.environ["STREAMLIT_CONFIG_DIR"] =
|
| 6 |
os.makedirs(os.environ["STREAMLIT_CONFIG_DIR"], exist_ok=True)
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
import streamlit as st
|
| 9 |
-
from agents import Runner
|
| 10 |
from agent.linkedin_agent import create_agent
|
|
|
|
|
|
|
| 11 |
|
| 12 |
st.set_page_config(page_title="Buscador de Perfiles LinkedIn", layout="centered")
|
| 13 |
|
|
|
|
| 1 |
# app/streamlit_app.py
|
| 2 |
|
| 3 |
import os
|
| 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 |
+
# 2) Agregamos src/ al PYTHONPATH para que Python encuentre agent/ y tools/
|
| 10 |
+
SRC_PATH = os.path.join(os.getcwd(), "src")
|
| 11 |
+
if SRC_PATH not in sys.path:
|
| 12 |
+
sys.path.append(SRC_PATH)
|
| 13 |
+
|
| 14 |
import streamlit as st
|
|
|
|
| 15 |
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 |
|