jeanflop commited on
Commit
4ab6fd4
·
verified ·
1 Parent(s): cadbafb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def my_custom_tool(arg1:str)-> dict: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that fetches jobs offers located in France from linkedin website
15
  Args:
@@ -19,7 +19,7 @@ def my_custom_tool(arg1:str)-> dict: #it's import to specify the return type
19
  url = "https://fresh-linkedin-profile-data.p.rapidapi.com/search-jobs"
20
 
21
  payload = {
22
- "keywords": ,arg1
23
  "geo_code": 105015875,
24
  "date_posted": "Any time",
25
  "experience_levels": [],
@@ -85,7 +85,7 @@ with open("prompts.yaml", 'r') as stream:
85
 
86
  agent = CodeAgent(
87
  model=model,
88
- tools=[final_answer], ## add your tools here (don't remove final answer)
89
  max_steps=6,
90
  verbosity_level=1,
91
  grammar=None,
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def my_job_tool(arg1: str)-> dict: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that fetches jobs offers located in France from linkedin website
15
  Args:
 
19
  url = "https://fresh-linkedin-profile-data.p.rapidapi.com/search-jobs"
20
 
21
  payload = {
22
+ "keywords":arg1,
23
  "geo_code": 105015875,
24
  "date_posted": "Any time",
25
  "experience_levels": [],
 
85
 
86
  agent = CodeAgent(
87
  model=model,
88
+ tools=[final_answer,my_job_tool], ## add your tools here (don't remove final answer)
89
  max_steps=6,
90
  verbosity_level=1,
91
  grammar=None,