Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,11 @@ from langchain.agents import AgentType, initialize_agent, tool
|
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
config = {
|
9 |
"max_tokens": 1000,
|
10 |
"model_name": "gpt-4",
|
|
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
7 |
|
8 |
+
from dotenv import load_dotenv, find_dotenv
|
9 |
+
_ = load_dotenv(find_dotenv())
|
10 |
+
|
11 |
+
TAVILY_API_KEY = os.environ["TAVILY_API_KEY"]
|
12 |
+
|
13 |
config = {
|
14 |
"max_tokens": 1000,
|
15 |
"model_name": "gpt-4",
|