Fix syntax error in get bio
Browse files
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(
|
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 |
|