Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,12 +67,46 @@ import os
|
|
67 |
os.environ["OPENAI_API_KEY"] = "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" # Replace with your key
|
68 |
llm = ChatOpenAI(temperature=1.0, model='gpt-3.5-turbo-0613')
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
cv_json = {
|
71 |
"name": "Jisu Kim",
|
72 |
"location": "Atlanta, GA",
|
73 |
-
"
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
"education": [
|
77 |
{
|
78 |
"institution": "Georgia Institute of Technology (GT)",
|
@@ -89,50 +123,68 @@ cv_json = {
|
|
89 |
"completion_date": "August 2023"
|
90 |
}
|
91 |
],
|
92 |
-
"
|
93 |
"summary": "When I first used the collaborative features of Google Workspace, I was captivated by the potential of technology to support work efficiently. The hubo.turn_left() function in the KAIST Introduction to Programming course opened up the joyful world of computer science, and a machine learning internship at Samsung made me fall for Artificial Intelligence (AI). These experiences have led me to belief in the potential of AI and to dedicate myself to enriching the human experience with AI in professional environments. My goal is to develop technologies that enhance both human-to-human and human-to-AI interactions, making these interactions not only more efficient but also more understandable and actionable.",
|
94 |
"keywords": ["HCI", "Human-Centered AI", "Human-AI Interaction", "Human-AI Collaboration", "Explainable AI"]
|
95 |
},
|
96 |
-
"
|
97 |
{
|
98 |
-
"
|
99 |
-
"
|
100 |
-
"advisor": "Ashok Goel",
|
101 |
-
"location": "Atlanta, GA",
|
102 |
-
"duration": "Jan. 2024 – Present",
|
103 |
-
"project": "SAMI: AI-Mediated Social Interaction in online learning environments",
|
104 |
-
"responsibilities": ["Designed a learnersourcing system using an AI social agent to enhance both intrinsic and extrinsic motivation of learners."]
|
105 |
-
},
|
106 |
-
{
|
107 |
-
"lab": "KAIST Interaction Lab (KIXLab)",
|
108 |
-
"position": "Undergraduate Researcher",
|
109 |
-
"advisor": "Juho Kim",
|
110 |
-
"location": "Daejeon, Korea",
|
111 |
-
"duration": "Jan. 2022 – Aug. 2023",
|
112 |
-
"projects": [
|
113 |
-
{
|
114 |
-
"name": "StupidTutor",
|
115 |
-
"description": "Understanding users’ comprehension ability from inconsistent large language models (LLMs)",
|
116 |
-
"responsibilities": ["Identified five types of output inconsistencies and designed a user study to understand users’ interaction with LLMs.", "Spearheaded data analysis and visualization of a user study with 250+ participants using Pandas with Python and R.", "Developed the back-end for a user study interface using SQLite and Flask, collaborating with a front-end developer."]
|
117 |
-
},
|
118 |
-
{
|
119 |
-
"name": "Grinder",
|
120 |
-
"description": "Designing object detection based on human-AI collaboration in video commerce",
|
121 |
-
"responsibilities": ["Led 20+ remote unmoderated usability tests encompassing both qualitative studies and quantitative benchmark studies."]
|
122 |
-
}
|
123 |
-
]
|
124 |
},
|
125 |
{
|
126 |
-
"
|
127 |
-
"
|
128 |
-
"
|
129 |
-
"location": "Atlanta, GA",
|
130 |
-
"duration": "Aug. 2022 – Dec.2022",
|
131 |
-
"project": "Pioneering virtual reality and explainable AI for neurodiversity in remote work scenarios",
|
132 |
-
"responsibilities": ["Contrasted and evaluated several AI models and created different styles of explanations to display AI predictions."]
|
133 |
}
|
134 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
"industry_experience": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
{
|
137 |
"company": "Samsung SDS Co., Ltd. (Samsung Data System)",
|
138 |
"position": "Machine Learning Intern",
|
@@ -154,32 +206,30 @@ cv_json = {
|
|
154 |
{
|
155 |
"title": "Engaging Learnersourcing with an AI Social Agent in Online Learning",
|
156 |
"authors": "Jisu Kim, Ashok Goel",
|
157 |
-
"conference": "L@S 2024 Workshop on Learnersourcing: Student-generated Content @ Scale."
|
|
|
158 |
},
|
159 |
{
|
160 |
"title": "One vs. Many: Comprehending Accurate Information from Multiple Erroneous and Inconsistent AI Generations",
|
161 |
"authors": "Yoonjoo Lee, Kihoon Son, Tae Soo Kim, Jisu Kim, John Joon Young Chung, Eytan Adar, Juho Kim",
|
162 |
-
"conference": "FAccT 2024: ACM Conference on Fairness, Accountability, and Transparency."
|
163 |
-
|
164 |
-
|
165 |
-
"projects": [
|
166 |
-
{
|
167 |
-
"name": "Understanding AI Use and Non-use in Slide Creation with Google Workspace",
|
168 |
-
"role": "Project Leader",
|
169 |
-
"advisor": "Richmond Wong",
|
170 |
-
"description": "Led the master’s project on ‘Understanding AI Use in Slide Creation Amongst Young Professionals in Tech Companies’ in a partnership with Google Workspace; Project ongoing."
|
171 |
-
},
|
172 |
-
{
|
173 |
-
"name": "Seminars on Introduction to AI and Computer Vision at Samsung SDS",
|
174 |
-
"role": "Speaker and Blog Editor",
|
175 |
-
"description": "Hosted a monthly team seminar at Samsung SDS titled ‘Introduction to AI for Novices’ and ‘Background Segmentation using Deep Learning’ with content published on a Medium blog, achieving over 2k views monthly and a total of 40k views. Authored a highly popular blog post on ‘Image Classification’, which ranks in the top 3 Google search results in Korean."
|
176 |
-
},
|
177 |
-
{
|
178 |
-
"name": "FORECST, Online Hackathon Website",
|
179 |
-
"role": "Project Leader",
|
180 |
-
"description": "Directed a team of 4 in the end-to-end website development from ideation to deployment using React.js and Firebase, facilitating remote participation during the COVID-19 pandemic."
|
181 |
}
|
182 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
"leadership_and_activities": [
|
184 |
{
|
185 |
"role": "Committee Member",
|
@@ -261,20 +311,49 @@ cv_json = {
|
|
261 |
}
|
262 |
|
263 |
def predict(message, history):
|
264 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
response = llm([HumanMessage(content=prompt)])
|
266 |
return response.content
|
267 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
# Example inputs as buttons
|
269 |
examples = [
|
270 |
-
"
|
271 |
-
"What
|
272 |
-
"How can I
|
273 |
-
"
|
274 |
]
|
275 |
|
276 |
# Launch the Gradio interface with example inputs
|
277 |
-
|
278 |
|
279 |
if __name__ == "__main__":
|
280 |
demo.launch()
|
|
|
67 |
os.environ["OPENAI_API_KEY"] = "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" # Replace with your key
|
68 |
llm = ChatOpenAI(temperature=1.0, model='gpt-3.5-turbo-0613')
|
69 |
|
70 |
+
question_json = {
|
71 |
+
"questions": [
|
72 |
+
{
|
73 |
+
"question": "What are Jisu's current projects?",
|
74 |
+
"answer": [
|
75 |
+
"1. Understanding AI Use and Non-use in Slide Creation with Google Workspace * The rise of advanced Artificial Intelligence (AI) tools has significantly altered how people create work deliverables. This project explores how AI has changed the landscape of slide creation. We aim to understand the user process, identify pain points, determine the AI tools used, and ascertain when and why people opt not to use AI tools. Our findings will inform improvements for Google Workspace products, especially Google Vids and Google Slides.",
|
76 |
+
"2. SAMI: AI-Mediated Social Interaction in Online Learning Environments * SAMI (Social Agent Mediated Interactions) is an AI social agent that facilitates the building of social connections among online students through AI-mediated social interaction. AI-mediated social interaction is the AI-facilitated process of building and maintaining social connections between individuals through information inferred from people’s online posts. SAMI addresses the pressing need for social connections, and the challenges of remote social interactions that online students often face, thus enhancing their sense of community and engagement in the learning process. * link to workshop paper [http://jisulog.kim/workshop1.pdf]"
|
77 |
+
]
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"question": "What are Jisu's publications?",
|
81 |
+
"answer": [
|
82 |
+
"1. Engaging Learnersourcing with an AI Social Agent in Online Learning * Jisu Kim, Ashok Goel * L@S 2024 Workshop on Learnersourcing: Student-generated Content @ Scale * Link to PDF [http://jisulog.kim/workshop1.pdf]"
|
83 |
+
"2. One vs. Many: Comprehending Accurate Information from Multiple Erroneous and Inconsistent AI Generations * Yoonjoo Lee, Kihoon Son, Tae Soo Kim, Jisu Kim, John Joon Young Chung, Eytan Adar, Juho Kim * FAccT 2024: ACM Conference on Fairness, Accountability, and Transparency * Link to ArXiv paper[https://arxiv.org/abs/2405.05581]"
|
84 |
+
]
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"question": "How can I reach out to Jisu?",
|
88 |
+
"answer": {
|
89 |
+
"email": "[email protected]",
|
90 |
+
"linkedin": "https://www.linkedin.com/in/jisulog/",
|
91 |
+
"twitter": "https://x.com/jisukiim?s=21",
|
92 |
+
"invitation": "If you are interested in collaboration, please reach out to me! I'm always happy to chat!"
|
93 |
+
}
|
94 |
+
},
|
95 |
+
]
|
96 |
+
}
|
97 |
+
|
98 |
cv_json = {
|
99 |
"name": "Jisu Kim",
|
100 |
"location": "Atlanta, GA",
|
101 |
+
"contact" : [
|
102 |
+
{
|
103 |
+
"email": "jisulog.k@gmail.com",
|
104 |
+
"phone": "(470) 652 9854",
|
105 |
+
"linkedin": "https://www.linkedin.com/in/jisulog/",
|
106 |
+
"twitter": "https://x.com/jisukiim?s=21",
|
107 |
+
"invitation": "If you are interested in collaboration, please reach out to me! I'm always happy to chat!",
|
108 |
+
}
|
109 |
+
],
|
110 |
"education": [
|
111 |
{
|
112 |
"institution": "Georgia Institute of Technology (GT)",
|
|
|
123 |
"completion_date": "August 2023"
|
124 |
}
|
125 |
],
|
126 |
+
"bio": {
|
127 |
"summary": "When I first used the collaborative features of Google Workspace, I was captivated by the potential of technology to support work efficiently. The hubo.turn_left() function in the KAIST Introduction to Programming course opened up the joyful world of computer science, and a machine learning internship at Samsung made me fall for Artificial Intelligence (AI). These experiences have led me to belief in the potential of AI and to dedicate myself to enriching the human experience with AI in professional environments. My goal is to develop technologies that enhance both human-to-human and human-to-AI interactions, making these interactions not only more efficient but also more understandable and actionable.",
|
128 |
"keywords": ["HCI", "Human-Centered AI", "Human-AI Interaction", "Human-AI Collaboration", "Explainable AI"]
|
129 |
},
|
130 |
+
"current_project": [
|
131 |
{
|
132 |
+
"title": "Understanding AI Use and Non-use in Slide Creation with Google Workspace",
|
133 |
+
"description": "The rise of advanced Artificial Intelligence (AI) tools has significantly altered how people create work deliverables. This project explores how AI has changed the landscape of slide creation. We aim to understand the user process, identify pain points, determine the AI tools used, and ascertain when and why people opt not to use AI tools. Our findings will inform improvements for Google Workspace products, especially Google Vids and Google Slides."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
},
|
135 |
{
|
136 |
+
"title": "SAMI: AI-Mediated Social Interaction in Online Learning Environments",
|
137 |
+
"description": "SAMI (Social Agent Mediated Interactions) is an AI social agent that facilitates the building of social connections among online students through AI-mediated social interaction. AI-mediated social interaction, as defined by Wang et al. [11], is “the AI-facilitated process of building and maintaining social connections between in- dividuals through information inferred from people’s online posts.” SAMI addresses the pressing need for social connections, and the challenges of remote social interactions that online students often face, thus enhancing their sense of community and engagement in the learning process.",
|
138 |
+
"workshop_paper": "http://jisulog.kim/workshop1.pdf"
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
],
|
141 |
+
# "research_experience": [
|
142 |
+
# {
|
143 |
+
# "lab": "Design Intelligence Lab (DILab)",
|
144 |
+
# "position": "Graduate Researcher",
|
145 |
+
# "advisor": "Ashok Goel",
|
146 |
+
# "location": "Atlanta, GA",
|
147 |
+
# "duration": "Jan. 2024 – Present",
|
148 |
+
# "project": "SAMI: AI-Mediated Social Interaction in online learning environments",
|
149 |
+
# "responsibilities": ["Designed a learnersourcing system using an AI social agent to enhance both intrinsic and extrinsic motivation of learners."]
|
150 |
+
# },
|
151 |
+
# {
|
152 |
+
# "lab": "KAIST Interaction Lab (KIXLab)",
|
153 |
+
# "position": "Undergraduate Researcher",
|
154 |
+
# "advisor": "Juho Kim",
|
155 |
+
# "location": "Daejeon, Korea",
|
156 |
+
# "duration": "Jan. 2022 – Aug. 2023",
|
157 |
+
# "projects": [
|
158 |
+
# {
|
159 |
+
# "name": "StupidTutor",
|
160 |
+
# "description": "Understanding users’ comprehension ability from inconsistent large language models (LLMs)",
|
161 |
+
# "responsibilities": ["Identified five types of output inconsistencies and designed a user study to understand users’ interaction with LLMs.", "Spearheaded data analysis and visualization of a user study with 250+ participants using Pandas with Python and R.", "Developed the back-end for a user study interface using SQLite and Flask, collaborating with a front-end developer."]
|
162 |
+
# },
|
163 |
+
# {
|
164 |
+
# "name": "Grinder",
|
165 |
+
# "description": "Designing object detection based on human-AI collaboration in video commerce",
|
166 |
+
# "responsibilities": ["Led 20+ remote unmoderated usability tests encompassing both qualitative studies and quantitative benchmark studies."]
|
167 |
+
# }
|
168 |
+
# ]
|
169 |
+
# },
|
170 |
+
# {
|
171 |
+
# "lab": "GT Co-Well Computer Lab",
|
172 |
+
# "position": "Undergraduate Researcher",
|
173 |
+
# "advisor": "Jennifer Kim",
|
174 |
+
# "location": "Atlanta, GA",
|
175 |
+
# "duration": "Aug. 2022 – Dec.2022",
|
176 |
+
# "project": "Pioneering virtual reality and explainable AI for neurodiversity in remote work scenarios",
|
177 |
+
# "responsibilities": ["Contrasted and evaluated several AI models and created different styles of explanations to display AI predictions."]
|
178 |
+
# }
|
179 |
+
# ],
|
180 |
"industry_experience": [
|
181 |
+
{
|
182 |
+
"company": "Tesla Inc.",
|
183 |
+
"position": "Incoming Machine Learning Intern",
|
184 |
+
"location": "Fremont, CA",
|
185 |
+
"duration": "Aug. 2024 – Jan. 2025",
|
186 |
+
"project": "ML/NLP for data modeling, sales and customer analytics",
|
187 |
+
},
|
188 |
{
|
189 |
"company": "Samsung SDS Co., Ltd. (Samsung Data System)",
|
190 |
"position": "Machine Learning Intern",
|
|
|
206 |
{
|
207 |
"title": "Engaging Learnersourcing with an AI Social Agent in Online Learning",
|
208 |
"authors": "Jisu Kim, Ashok Goel",
|
209 |
+
"conference": "L@S 2024 Workshop on Learnersourcing: Student-generated Content @ Scale.",
|
210 |
+
"pdf": "http://jisulog.kim/workshop1.pdf",
|
211 |
},
|
212 |
{
|
213 |
"title": "One vs. Many: Comprehending Accurate Information from Multiple Erroneous and Inconsistent AI Generations",
|
214 |
"authors": "Yoonjoo Lee, Kihoon Son, Tae Soo Kim, Jisu Kim, John Joon Young Chung, Eytan Adar, Juho Kim",
|
215 |
+
"conference": "FAccT 2024: ACM Conference on Fairness, Accountability, and Transparency.",
|
216 |
+
"arxiv": "https://arxiv.org/abs/2405.05581",
|
217 |
+
"description": "As Large Language Models (LLMs) are nondeterministic, the same input can generate different outputs, some of which may be incorrect or hallucinated. If run again, the LLM may correct itself and produce the correct answer. Unfortunately, most LLM-powered systems resort to single results which, correct or not, users accept. Having the LLM produce multiple outputs may help identify disagreements or alternatives. However, it is not obvious how the user will interpret conflicts or inconsistencies. To this end, we investigate how users perceive the AI model and comprehend the generated information when they receive multiple, potentially inconsistent, outputs. Through a preliminary study, we identified five types of output inconsistencies. Based on these categories, we conducted a study (N=252) in which participants were given one or more LLM-generated passages to an information-seeking question. We found that inconsistency within multiple LLM-generated outputs lowered the participants' perceived AI capacity, while also increasing their comprehension of the given information. Specifically, we observed that this positive effect of inconsistencies was most significant for participants who read two passages, compared to those who read three. Based on these findings, we present design implications that, instead of regarding LLM output inconsistencies as a drawback, we can reveal the potential inconsistencies to transparently indicate the limitations of these models and promote critical LLM usage."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
}
|
219 |
],
|
220 |
+
# "projects": [
|
221 |
+
# {
|
222 |
+
# "name": "Seminars on Introduction to AI and Computer Vision at Samsung SDS",
|
223 |
+
# "role": "Speaker and Blog Editor",
|
224 |
+
# "description": "Hosted a monthly team seminar at Samsung SDS titled ‘Introduction to AI for Novices’ and ‘Background Segmentation using Deep Learning’ with content published on a Medium blog, achieving over 2k views monthly and a total of 40k views. Authored a highly popular blog post on ‘Image Classification’, which ranks in the top 3 Google search results in Korean."
|
225 |
+
# },
|
226 |
+
# {
|
227 |
+
# "name": "FORECST, Online Hackathon Website",
|
228 |
+
# "role": "Project Leader",
|
229 |
+
# "description": "Directed a team of 4 in the end-to-end website development from ideation to deployment using React.js and Firebase, facilitating remote participation during the COVID-19 pandemic.",
|
230 |
+
# "demo": "https://www.youtube.com/watch?v=l5le0iE8PNc&ab_channel=JeanneChoi"
|
231 |
+
# }
|
232 |
+
# ],
|
233 |
"leadership_and_activities": [
|
234 |
{
|
235 |
"role": "Committee Member",
|
|
|
311 |
}
|
312 |
|
313 |
def predict(message, history):
|
314 |
+
if find(message):
|
315 |
+
prompt = (
|
316 |
+
f"As Jisu's personal assistant,"
|
317 |
+
f"Given that: {question_json}, How can I assist with information on: {message}"
|
318 |
+
)
|
319 |
+
|
320 |
+
response = llm([HumanMessage(content=prompt)])
|
321 |
+
return response.content
|
322 |
+
|
323 |
+
prompt = (
|
324 |
+
f"As Jisu's personal assistant,"
|
325 |
+
f"Given that: {cv_json}, How can I assist with information on: {message}"
|
326 |
+
f"If source does not contains relevant information, I will state that the information is not available."
|
327 |
+
)
|
328 |
+
|
329 |
response = llm([HumanMessage(content=prompt)])
|
330 |
return response.content
|
331 |
|
332 |
+
def find(message):
|
333 |
+
prompt = (
|
334 |
+
"Given the list of questions about Jisu's CV: \n"
|
335 |
+
"- What are Jisu's current projects?\n"
|
336 |
+
"- What are Jisu's publications?\n"
|
337 |
+
"- How can I reach out to Jisu?\n"
|
338 |
+
f"Determine if the following query matches any of the topics above: '{message}'. Answer 'Yes' if it matches, otherwise answer 'No'."
|
339 |
+
)
|
340 |
+
|
341 |
+
response = llm([HumanMessage(content=prompt)])
|
342 |
+
if response.content.strip() == 'Yes':
|
343 |
+
return True
|
344 |
+
else:
|
345 |
+
return False
|
346 |
+
|
347 |
# Example inputs as buttons
|
348 |
examples = [
|
349 |
+
"What are Jisu's current projects?",
|
350 |
+
"What are Jisu's publications?",
|
351 |
+
"How can I reach out to Jisu?",
|
352 |
+
# "How is the answer generated?"
|
353 |
]
|
354 |
|
355 |
# Launch the Gradio interface with example inputs
|
356 |
+
gr.ChatInterface(predict, examples=examples, theme='gradio/soft').launch()
|
357 |
|
358 |
if __name__ == "__main__":
|
359 |
demo.launch()
|