Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']='
|
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 = "
|
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 |
|