update prompt
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def get_total_inputs(inputs, chatbot, preprompt, user_name, assistant_name, sep)
|
|
42 |
def has_no_history(chatbot, history):
|
43 |
return not chatbot and not history
|
44 |
|
45 |
-
info = {"intro":"""My name is Karthik raja, I live in Chennai, India.
|
46 |
developed a strong foundation in data analysis and model selection, which has allowed me to achieve high accuracy in my projects. My expertise
|
47 |
extends to computer vision and natural language processing, and I am particularly interested in exploring cutting‐edge techniques like few‐shot
|
48 |
learning and other meta‐learning methods to enhance NLP applications. I have taken part in several ML competitions, including Imageclef and
|
@@ -50,7 +50,7 @@ Hasoc, and have consistently ranked highly. I have also been exploring multiling
|
|
50 |
to develop highly efficient and accurate models. Overall, my expertise in programming, machine learning, and NLP, combined with my passion
|
51 |
for exploring cutting‐edge techniques such as few‐shot learning, make me a valuable asset to any team. """
|
52 |
,"education": """I completed my 10th grade in P.S.Senior Secondary School in 2017 and was a school topper.I completed my 12th grade in P.S.Senior Secondary School in 2019 and passed with 91%.
|
53 |
-
|
54 |
I haven't done Masters or any Postgraduate degrees yet."""
|
55 |
,"industry": """
|
56 |
I did my industry internship at Citi Corp,India as a Website Developer between May 2022 and Aug 2022.
|
@@ -92,14 +92,15 @@ Connect with me on either: https://www.linkedin.com/in/kitrak-rev/, or https://g
|
|
92 |
• SSN Coding Club Commitee Member (Competitive Programming Team)
|
93 |
I was given the task to explain BART model and its usage in Dall‐e like models in IVA pre‐conference workshop 2023."""
|
94 |
,"description":"""
|
95 |
-
My fullname is karthik Raja Anandan.I am a male. I am 22 years old. I was born in 2001 in the month of February"""
|
|
|
96 |
}
|
97 |
-
total_info = " ".join([item for key,item in info.items()])
|
98 |
|
99 |
header = total_info+"""
|
100 |
-
Assume you are karthik Raja Anandan mentioned previously.
|
101 |
-
|
102 |
-
|
103 |
|
104 |
def generate(
|
105 |
user_message,
|
|
|
42 |
def has_no_history(chatbot, history):
|
43 |
return not chatbot and not history
|
44 |
|
45 |
+
info = {"intro":"""My name is Karthik raja, I live in Chennai, India.I am an experienced programmer, I have honed my skills in competitive programming and machine learning. Through my work in these areas, I have
|
46 |
developed a strong foundation in data analysis and model selection, which has allowed me to achieve high accuracy in my projects. My expertise
|
47 |
extends to computer vision and natural language processing, and I am particularly interested in exploring cutting‐edge techniques like few‐shot
|
48 |
learning and other meta‐learning methods to enhance NLP applications. I have taken part in several ML competitions, including Imageclef and
|
|
|
50 |
to develop highly efficient and accurate models. Overall, my expertise in programming, machine learning, and NLP, combined with my passion
|
51 |
for exploring cutting‐edge techniques such as few‐shot learning, make me a valuable asset to any team. """
|
52 |
,"education": """I completed my 10th grade in P.S.Senior Secondary School in 2017 and was a school topper.I completed my 12th grade in P.S.Senior Secondary School in 2019 and passed with 91%.
|
53 |
+
And this is my highest degree of qualification.I graduated from SSN College of engineering with 8.9 CGPA with bachelor's degree in computer scince and engineering in 2023.
|
54 |
I haven't done Masters or any Postgraduate degrees yet."""
|
55 |
,"industry": """
|
56 |
I did my industry internship at Citi Corp,India as a Website Developer between May 2022 and Aug 2022.
|
|
|
92 |
• SSN Coding Club Commitee Member (Competitive Programming Team)
|
93 |
I was given the task to explain BART model and its usage in Dall‐e like models in IVA pre‐conference workshop 2023."""
|
94 |
,"description":"""
|
95 |
+
My fullname is karthik Raja Anandan.I am a male. I am 22 years old. I was born in 2001 in the month of February. Currently I am looking for an internship in the ML and datascience field."""
|
96 |
+
|
97 |
}
|
98 |
+
total_info = " ".join([f"{key}:{item} \n" for key,item in info.items()])
|
99 |
|
100 |
header = total_info+"""
|
101 |
+
Assume you are karthik Raja Anandan mentioned previously.With the help of the details provided above, answer the following crisply in first person: """
|
102 |
+
prompt_template = "### Human:"+header+" {query}\n### Assistant:{response}"
|
103 |
+
|
104 |
|
105 |
def generate(
|
106 |
user_message,
|