Commit
·
8693f06
1
Parent(s):
ff4f21c
Add clarifying instructions
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_assistant_response(gpt_history):
|
|
| 37 |
|
| 38 |
hardcoded = {
|
| 39 |
1: "Hi, I'm an AI powered college counselor from Cledge! What prompt do you want help with?",
|
| 40 |
-
|
| 41 |
}
|
| 42 |
|
| 43 |
instructions = {
|
|
@@ -58,8 +58,6 @@ def grad_demo():
|
|
| 58 |
step = len(history)
|
| 59 |
print(f"STEP: {step}")
|
| 60 |
bot_message = ""
|
| 61 |
-
if step > 3:
|
| 62 |
-
step = (step - 2) % 2 + 2
|
| 63 |
if step in instructions:
|
| 64 |
gpt_history.append({"role": ChatRoles.SYSTEM, "content": instructions[step]})
|
| 65 |
bot_message = get_assistant_response(gpt_history)
|
|
|
|
| 37 |
|
| 38 |
hardcoded = {
|
| 39 |
1: "Hi, I'm an AI powered college counselor from Cledge! What prompt do you want help with?",
|
| 40 |
+
2: "Pick as many questions to answer as you'd like. Write the number of the question and then your response."
|
| 41 |
}
|
| 42 |
|
| 43 |
instructions = {
|
|
|
|
| 58 |
step = len(history)
|
| 59 |
print(f"STEP: {step}")
|
| 60 |
bot_message = ""
|
|
|
|
|
|
|
| 61 |
if step in instructions:
|
| 62 |
gpt_history.append({"role": ChatRoles.SYSTEM, "content": instructions[step]})
|
| 63 |
bot_message = get_assistant_response(gpt_history)
|