Fix the issue with get bio tool.
Browse files
app.py
CHANGED
@@ -39,8 +39,9 @@ def get_person_bio(name: str) -> str:
|
|
39 |
Args:
|
40 |
name: name of the person in "firstname_lastname" format
|
41 |
"""
|
|
|
42 |
details = {
|
43 |
-
"prakash_chaudhary": "Prakash is an employee of Fetch Rewards, Inc."
|
44 |
}
|
45 |
return details.get(name, "NA")
|
46 |
|
|
|
39 |
Args:
|
40 |
name: name of the person in "firstname_lastname" format
|
41 |
"""
|
42 |
+
name_key = "_".join(name.split(" ")).lower()
|
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 |
}
|
46 |
return details.get(name, "NA")
|
47 |
|