connectwithprakash commited on
Commit
1f6753c
·
verified ·
1 Parent(s): 7b9b049

Fix syntax error in get bio

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,12 +40,13 @@ def get_person_bio(first_name: str, last_name: str) -> str:
40
  first_name: first name of the person
41
  last_name: last name of the person
42
  """
 
43
  details = {
44
  "Prakash Chaudhary": "Prakash is an employee of Fetch Rewards, Inc. He loves working with agents and has in-depth knowledge around the field.",
45
  "John Doe": "No one"
46
 
47
  }
48
- return details.get(name, "NA")
49
 
50
  final_answer = FinalAnswerTool()
51
 
 
40
  first_name: first name of the person
41
  last_name: last name of the person
42
  """
43
+ full_name = f"{first_name} {last_name}"
44
  details = {
45
  "Prakash Chaudhary": "Prakash is an employee of Fetch Rewards, Inc. He loves working with agents and has in-depth knowledge around the field.",
46
  "John Doe": "No one"
47
 
48
  }
49
+ return details.get(full_name, "NA")
50
 
51
  final_answer = FinalAnswerTool()
52