Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,38 +4,38 @@ import openai
|
|
4 |
import gradio as gr
|
5 |
import os
|
6 |
|
7 |
-
# os.environ["OPENAI_API_KEY"] = "sk-proj-NJkq5ZinlsGDTE4AhyFXT3BlbkFJ9B96L3hQMbm2yR5dSj3M"
|
8 |
os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
|
9 |
-
print(os.getenv('OPENAI_API_KEY'))
|
10 |
llm = ChatOpenAI(temperature=1.0, model='gpt-3.5-turbo-0613')
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
}
|
|
|
|
|
39 |
|
40 |
cv_json = {
|
41 |
"name": "Jisu Kim",
|
|
|
4 |
import gradio as gr
|
5 |
import os
|
6 |
|
|
|
7 |
os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
|
|
|
8 |
llm = ChatOpenAI(temperature=1.0, model='gpt-3.5-turbo-0613')
|
9 |
|
10 |
+
question_josn = os.getenv('QUESTION_JSON')
|
11 |
+
|
12 |
+
# question_json = {
|
13 |
+
# "questions": [
|
14 |
+
# {
|
15 |
+
# "question": "What are Jisu's current projects?",
|
16 |
+
# "answer": [
|
17 |
+
# "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.",
|
18 |
+
# "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]"
|
19 |
+
# ]
|
20 |
+
# },
|
21 |
+
# {
|
22 |
+
# "question": "What are Jisu's publications?",
|
23 |
+
# "answer": [
|
24 |
+
# "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]"
|
25 |
+
# "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]"
|
26 |
+
# ]
|
27 |
+
# },
|
28 |
+
# {
|
29 |
+
# "question": "How can I reach out to Jisu?",
|
30 |
+
# "answer": {
|
31 |
+
# "email": "jisulog.k@gmail.com",
|
32 |
+
# "linkedin": "https://www.linkedin.com/in/jisulog/",
|
33 |
+
# "twitter": "https://x.com/jisukiim?s=21",
|
34 |
+
# "invitation": "If you are interested in collaboration, please reach out to me! I'm always happy to chat!"
|
35 |
+
# }
|
36 |
+
# },
|
37 |
+
# ]
|
38 |
+
# }
|
39 |
|
40 |
cv_json = {
|
41 |
"name": "Jisu Kim",
|