Spaces:
Running
Running
Commit
·
4482d39
1
Parent(s):
a9af48a
update info
Browse files- app.py +8 -2
- info/info.json +1 -0
- prompts.yaml +0 -2
app.py
CHANGED
@@ -103,11 +103,15 @@ def chatbot_response_json(user_input):
|
|
103 |
elif "name" in user_input:
|
104 |
return f"My name is {my_info['name']}."
|
105 |
elif "hello" in user_input:
|
106 |
-
return f"Hello
|
107 |
elif "bye" in user_input or "bye" in user_input:
|
108 |
return f"Bye."
|
109 |
elif "location" in user_input:
|
110 |
return f"I am located in {my_info['location']}."
|
|
|
|
|
|
|
|
|
111 |
elif "occupation" in user_input or "job" in user_input or "work" in user_input:
|
112 |
return f"I work as a {my_info['occupation']}."
|
113 |
elif "education" in user_input or "educational" in user_input:
|
@@ -116,7 +120,9 @@ def chatbot_response_json(user_input):
|
|
116 |
return f"My skills include: {', '.join(my_info['skills'])}."
|
117 |
elif "hobbies" in user_input or "interests" in user_input:
|
118 |
return f"My hobbies are: {', '.join(my_info['hobbies'])}."
|
119 |
-
elif "
|
|
|
|
|
120 |
contact_info = my_info["contact"]
|
121 |
return (
|
122 |
f"You can contact me via email at {contact_info['email']}, "
|
|
|
103 |
elif "name" in user_input:
|
104 |
return f"My name is {my_info['name']}."
|
105 |
elif "hello" in user_input:
|
106 |
+
return f"Hello! I'm here to assist you. Feel free to ask me about my background, experience, education, or anything else you'd like to know!"
|
107 |
elif "bye" in user_input or "bye" in user_input:
|
108 |
return f"Bye."
|
109 |
elif "location" in user_input:
|
110 |
return f"I am located in {my_info['location']}."
|
111 |
+
elif "phone" in user_input or "number" in user_input:
|
112 |
+
return f"you can send me a message directly here. ex: send message : your message"
|
113 |
+
elif "experiences" in user_input or "career" in user_input or "experience" in user_input:
|
114 |
+
return f"{my_info['career']}."
|
115 |
elif "occupation" in user_input or "job" in user_input or "work" in user_input:
|
116 |
return f"I work as a {my_info['occupation']}."
|
117 |
elif "education" in user_input or "educational" in user_input:
|
|
|
120 |
return f"My skills include: {', '.join(my_info['skills'])}."
|
121 |
elif "hobbies" in user_input or "interests" in user_input:
|
122 |
return f"My hobbies are: {', '.join(my_info['hobbies'])}."
|
123 |
+
elif "cv" in user_input or "resume" in user_input:
|
124 |
+
return f"My cvs are: {', '.join(my_info['cv'])}."
|
125 |
+
elif "contact" in user_input or "email" in user_input or "e-mail" in user_input or "linkedin" in user_input or "github":
|
126 |
contact_info = my_info["contact"]
|
127 |
return (
|
128 |
f"You can contact me via email at {contact_info['email']}, "
|
info/info.json
CHANGED
@@ -5,6 +5,7 @@
|
|
5 |
"education": "I hold a Master’s degree in Business Informatics from Paris Dauphine University and a Bachelor of Science in Computer Science from Pantheon-Sorbonne University. My technical skills include proficiency in programming languages like Java, PL/SQL, and Python, as well as expertise in data analytics, cloud frameworks, and financial instruments.",
|
6 |
"skills": ["Python", "Machine Learning", "Data Analysis","Product Management","Agile Development","Risk Management"],
|
7 |
"hobbies": ["Reading", "Hiking", "Crossfit"],
|
|
|
8 |
"contact": {
|
9 |
"email": "[email protected]",
|
10 |
"linkedin": "https://www.linkedin.com/in/liutianqing/",
|
|
|
5 |
"education": "I hold a Master’s degree in Business Informatics from Paris Dauphine University and a Bachelor of Science in Computer Science from Pantheon-Sorbonne University. My technical skills include proficiency in programming languages like Java, PL/SQL, and Python, as well as expertise in data analytics, cloud frameworks, and financial instruments.",
|
6 |
"skills": ["Python", "Machine Learning", "Data Analysis","Product Management","Agile Development","Risk Management"],
|
7 |
"hobbies": ["Reading", "Hiking", "Crossfit"],
|
8 |
+
"cv": ["https://www.liutianqing.com/cv"],
|
9 |
"contact": {
|
10 |
"email": "[email protected]",
|
11 |
"linkedin": "https://www.linkedin.com/in/liutianqing/",
|
prompts.yaml
CHANGED
@@ -12,7 +12,5 @@
|
|
12 |
|
13 |
|
14 |
---
|
15 |
-
Here are the rules you should always follow to solve your task:
|
16 |
-
1. Always use the tool to get information.
|
17 |
|
18 |
Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
|
|
|
12 |
|
13 |
|
14 |
---
|
|
|
|
|
15 |
|
16 |
Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
|