tiantian-paris commited on
Commit
e759611
·
1 Parent(s): 2929e28
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -69,7 +69,6 @@ def calculate_risk_metrics(
69
 
70
  my_info = {
71
  "name": "Tianqing LIU",
72
- "age": 30,
73
  "location": "Paris, France",
74
  "occupation": "Product Manager at MA",
75
  "education": "Master's in Computer Science",
@@ -80,7 +79,8 @@ my_info = {
80
  "linkedin": "https://www.linkedin.com/in/liutianqing/",
81
  "github": "https://liuti-ma.github.io/CV/",
82
  "website": "https://www.liutianqing.com"
83
- }
 
84
  }
85
  @tool
86
  def provide_my_information(query: str) -> str:
@@ -97,10 +97,10 @@ def provide_my_information(query: str) -> str:
97
  query = query.lower()
98
 
99
  # Check for specific keywords in the query and return the corresponding information
 
 
100
  if "name" in query:
101
  return f"My name is {my_info['name']}."
102
- elif "age" in query:
103
- return f"I am {my_info['age']} years old."
104
  elif "location" in query:
105
  return f"I am located in {my_info['location']}."
106
  elif "occupation" in query or "job" in query or "work" in query:
 
69
 
70
  my_info = {
71
  "name": "Tianqing LIU",
 
72
  "location": "Paris, France",
73
  "occupation": "Product Manager at MA",
74
  "education": "Master's in Computer Science",
 
79
  "linkedin": "https://www.linkedin.com/in/liutianqing/",
80
  "github": "https://liuti-ma.github.io/CV/",
81
  "website": "https://www.liutianqing.com"
82
+ },
83
+ "introduction":"Hello, my name is Tianqing LIU. I’m a Senior Product Manager with over 10 years of experience in financial technology, risk management, and SaaS solutions. Based in Paris, I specialize in delivering high-impact, scalable platforms for global financial institutions. I’m also a certified FRM®, SAFe® 6 Product Owner/Product Manager, and SCR® professional."
84
  }
85
  @tool
86
  def provide_my_information(query: str) -> str:
 
97
  query = query.lower()
98
 
99
  # Check for specific keywords in the query and return the corresponding information
100
+ if "name" in query:
101
+ return f" {my_info['introduction']}."
102
  if "name" in query:
103
  return f"My name is {my_info['name']}."
 
 
104
  elif "location" in query:
105
  return f"I am located in {my_info['location']}."
106
  elif "occupation" in query or "job" in query or "work" in query: