bstraehle commited on
Commit
b700bc7
1 Parent(s): fc9a1cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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",