Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,9 @@ from langchain.agents import AgentExecutor, create_react_agent
|
|
| 8 |
from langchain_core.prompts import PromptTemplate
|
| 9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 10 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
|
|
|
|
|
|
|
|
|
| 11 |
# (Keep Constants as is)
|
| 12 |
# --- Constants ---
|
| 13 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 8 |
from langchain_core.prompts import PromptTemplate
|
| 9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 10 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
| 11 |
+
from dotenv import load_dotenv
|
| 12 |
+
|
| 13 |
+
HUGGINGFACE_API_TOKEN = os.environ.get("HF_TOKEN")
|
| 14 |
# (Keep Constants as is)
|
| 15 |
# --- Constants ---
|
| 16 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|