charbaaz356 commited on
Commit
aba76cf
·
1 Parent(s): 2c9a10f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -44,7 +44,6 @@ from langchain.chains.question_answering import load_qa_chain
44
  # os.environ["TMDB_BEARER_TOKEN"] = ""
45
 
46
  news_api_key = os.environ["NEWS_API_KEY"]
47
- tmdb_bearer_token = os.environ["TMDB_BEARER_TOKEN"]
48
 
49
  TOOLS_LIST = ['serpapi', 'wolfram-alpha', 'pal-math', 'pal-colored-objects', 'news-api'] #'google-search','news-api','tmdb-api','open-meteo-api'
50
  TOOLS_DEFAULT_LIST = ['serpapi', 'wolfram-alpha', 'pal-math', 'pal-colored-objects', 'news-api']
@@ -252,7 +251,7 @@ def load_chain(tools_list, llm):
252
  if llm:
253
  print("\ntools_list", tools_list)
254
  tool_names = tools_list
255
- tools = load_tools(tool_names, llm=llm, news_api_key=news_api_key, tmdb_bearer_token=tmdb_bearer_token)
256
 
257
  memory = ConversationBufferMemory(memory_key="chat_history")
258
 
 
44
  # os.environ["TMDB_BEARER_TOKEN"] = ""
45
 
46
  news_api_key = os.environ["NEWS_API_KEY"]
 
47
 
48
  TOOLS_LIST = ['serpapi', 'wolfram-alpha', 'pal-math', 'pal-colored-objects', 'news-api'] #'google-search','news-api','tmdb-api','open-meteo-api'
49
  TOOLS_DEFAULT_LIST = ['serpapi', 'wolfram-alpha', 'pal-math', 'pal-colored-objects', 'news-api']
 
251
  if llm:
252
  print("\ntools_list", tools_list)
253
  tool_names = tools_list
254
+ tools = load_tools(tool_names, llm=llm, news_api_key=news_api_key)
255
 
256
  memory = ConversationBufferMemory(memory_key="chat_history")
257