forked from RunzheYang/SocraticAI
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partially working version of StudentPersonaGPT
- Loading branch information
1 parent
54d25b7
commit c864e74
Showing
10 changed files
with
542 additions
and
724 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
You are an assistant for a student in an Advanced Placement Computer Science course, learning the Java programming language.\r\n\r\nAnswer the student's questions concisely.\r\nDo not answer questions on other topics.\r\nDo not include code in any of your responses. \r\nThe student may provide code to seek assistance in compiler errors or other issues. In those circumstances, refer to their code but do not rewrite it to provide a solution." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"The above is the conversation between Socrates and Theaetetus. You job is to challenge their anwers. They were likely to have made multiple mistakes. Please correct them. \nRemember to start your answer with "NO" if you think so far their discussion is alright, otherwise start with \"Here are my suggestions:\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"You are playing the role of a student who is not very interested in the current study subject. You prefer to talk about anything but the lesson at hand, often diverting the conversation to your personal interests, hobbies, or random thoughts that cross your mind. Your responses should reflect a friendly but easily distracted nature, showing curiosity and enthusiasm for various topics unrelated to the educational content being discussed. Remember, your main characteristic is that you're more eager to engage in casual, off-topic conversations rather than focusing on the lesson or academic questions posed by the AI tutor. Try to steer the conversation away from study materials by asking questions or sharing thoughts about subjects like movies, sports, video games, or any fun fact you find interesting." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Flask==2.2.3 | ||
Flask==3.0.2 | ||
requests==2.25.1 | ||
Flask-Session==0.4.0 | ||
openai==0.27.4 | ||
wolframalpha==5.0.0 | ||
python-dotenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap"); | ||
|
||
body { | ||
font-family: Futura, sans-serif; | ||
font-size: 0.8rem; | ||
background-color: #212529; | ||
color: #f8f9fa; | ||
} | ||
#chat-container { | ||
width: 80%; | ||
max-width: 900px; | ||
margin: 2rem auto; | ||
} | ||
#chat-history { | ||
height: 600px; | ||
border: 1px solid #ccc; | ||
overflow-y: scroll; | ||
padding: 10px; | ||
background-color: #343a40; | ||
} | ||
.manual-chat-controls { | ||
display: none; /* Hide manual chat controls by default */ | ||
} | ||
#user-input { | ||
width: 100%; | ||
box-sizing: border-box; | ||
} | ||
p { | ||
margin: 3px 0; | ||
} | ||
h1 { | ||
font-family: "Quicksand", sans-serif; | ||
font-size: 2.5rem; | ||
color: #ffffff; | ||
} | ||
.typing-animation { | ||
display: inline-block; | ||
position: relative; | ||
bottom: -0.1em; | ||
margin-left: 0.1em; | ||
font-size: 1rem; | ||
animation: typing 0.02s steps(4) 0s infinite; | ||
} | ||
@keyframes typing { | ||
0% { | ||
width: 0.1em; | ||
} | ||
50% { | ||
width: 0.6em; | ||
} | ||
100% { | ||
width: 0.1em; | ||
} | ||
} | ||
.message-sender { | ||
font-weight: bold; | ||
} | ||
.message-content { | ||
display: inline; | ||
} | ||
/* Additional styling and animation */ | ||
body::after { | ||
content: ""; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-image: radial-gradient( | ||
circle, | ||
rgba(255, 255, 255, 0.05), | ||
rgba(255, 255, 255, 0.05), | ||
rgba(0, 0, 0, 0.3), | ||
rgba(0, 0, 0, 0.3) | ||
); | ||
background-size: 50px 50px; | ||
z-index: -1; | ||
animation: intelligent-bg 15s linear infinite; | ||
} | ||
@keyframes intelligent-bg { | ||
0% { | ||
background-position: 0 0; | ||
} | ||
100% { | ||
background-position: 400px 0; | ||
} | ||
} | ||
/* User message colors */ | ||
.ai-tutor-message { | ||
margin-bottom: 8px; | ||
color: #e74c3c; | ||
} | ||
.student-persona-message { | ||
margin-bottom: 8px; | ||
color: #3498db; | ||
} | ||
.proofreader-message { | ||
margin-bottom: 8px; | ||
color: #f1c40f; | ||
} | ||
.system-message { | ||
text-align: center; | ||
margin-bottom: 6px; | ||
color: #94928e; | ||
} | ||
/* Copy button styling */ | ||
.copy-code-btn { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
background-color: #f8f9fa; | ||
color: #212529; | ||
border: none; | ||
border-radius: 4px; | ||
padding: 4px 8px; | ||
font-size: 10px; | ||
cursor: pointer; | ||
opacity: 0; | ||
transition: opacity 0.2s ease-in-out; | ||
z-index: 10; | ||
} | ||
|
||
.hljs { | ||
position: relative; | ||
} | ||
|
||
.hljs:hover .copy-code-btn { | ||
opacity: 1; | ||
} |
Oops, something went wrong.