tiantian-paris commited on
Commit
8e85db4
·
1 Parent(s): 3324ec5
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -97,7 +97,7 @@ 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']}."
@@ -117,9 +117,10 @@ def provide_my_information(query: str) -> str:
117
  f"You can contact me via email at {contact_info['email']}, "
118
  f"connect with me on LinkedIn at {contact_info['linkedin']}, "
119
  f"or check out my GitHub profile at {contact_info['github']}."
 
120
  )
121
  else:
122
- return "I'm sorry, I don't have information on that. Please ask about my name, age, location, occupation, education, skills, hobbies, or contact details."
123
 
124
  @tool
125
  def get_current_time_in_timezone(timezone: str) -> str:
 
97
  query = query.lower()
98
 
99
  # Check for specific keywords in the query and return the corresponding information
100
+ if "who" in query:
101
  return f" {my_info['introduction']}."
102
  if "name" in query:
103
  return f"My name is {my_info['name']}."
 
117
  f"You can contact me via email at {contact_info['email']}, "
118
  f"connect with me on LinkedIn at {contact_info['linkedin']}, "
119
  f"or check out my GitHub profile at {contact_info['github']}."
120
+ f"or check out my website at {contact_info['website']}."
121
  )
122
  else:
123
+ return "I'm sorry, I don't have information on that. Please ask about my name, location, occupation, education, skills, hobbies, or contact details."
124
 
125
  @tool
126
  def get_current_time_in_timezone(timezone: str) -> str: