TCares commited on
Commit
791c427
·
verified ·
1 Parent(s): 001a158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,6 +8,8 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
  from tools.visit_webpage import VisitWebpageTool
10
 
 
 
11
  @tool
12
  def find_job_websites(job:str, location:str)-> str:
13
  """A tool that finds websites containing job postings for a job title at a specific location.
@@ -20,7 +22,7 @@ def find_job_websites(job:str, location:str)-> str:
20
  [Website Title](Website URL)
21
  Description ...\n
22
  """
23
- results = DuckDuckGoSearchTool()(f'jobs "{job}" {location}')
24
 
25
  return results
26
 
 
8
  from Gradio_UI import GradioUI
9
  from tools.visit_webpage import VisitWebpageTool
10
 
11
+ ddg_search_tool = DuckDuckGoSearchTool()
12
+
13
  @tool
14
  def find_job_websites(job:str, location:str)-> str:
15
  """A tool that finds websites containing job postings for a job title at a specific location.
 
22
  [Website Title](Website URL)
23
  Description ...\n
24
  """
25
+ results = ddg_search_tool(f'jobs "{job}" {location}')
26
 
27
  return results
28