nmurugesh commited on
Commit
7eeab32
·
verified ·
1 Parent(s): 429dbd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ from langchain.agents import AgentExecutor, create_structured_chat_agent
41
  from langchain_community.tools import DuckDuckGoSearchRun
42
  from duckduckgo_search import DDGS
43
 
44
- os.environ['SERPAPI_API_KEY']='2e3312eee2ce5e3d9d97989c87999ae121765134a5f713b91146ba35af405dfc'
45
  from langchain_community.utilities import SerpAPIWrapper
46
  # search = SerpAPIWrapper()
47
 
@@ -555,7 +555,7 @@ def get_image_url(destination):
555
 
556
 
557
  # def get_image_url(destination):
558
- # api_key = "2e3312eee2ce5e3d9d97989c87999ae121765134a5f713b91146ba35af405dfc"
559
  # search = GoogleSearch({"q": destination, "tbm": "isch", "api_key": api_key})
560
  # results = search.get_dict()
561
 
 
41
  from langchain_community.tools import DuckDuckGoSearchRun
42
  from duckduckgo_search import DDGS
43
 
44
+ os.environ['SERPAPI_API_KEY']=os.getenv('serp')
45
  from langchain_community.utilities import SerpAPIWrapper
46
  # search = SerpAPIWrapper()
47
 
 
555
 
556
 
557
  # def get_image_url(destination):
558
+ # api_key = "kkknbvvc"
559
  # search = GoogleSearch({"q": destination, "tbm": "isch", "api_key": api_key})
560
  # results = search.get_dict()
561