Commit
·
b09028c
1
Parent(s):
04ae05e
Infinite loop
Browse files
app.py
CHANGED
|
@@ -58,9 +58,9 @@ def grad_demo():
|
|
| 58 |
step = len(history)
|
| 59 |
print(f"STEP: {step}")
|
| 60 |
bot_message = ""
|
|
|
|
|
|
|
| 61 |
if step in instructions:
|
| 62 |
-
if step > 3:
|
| 63 |
-
step = (step - 2) % 2 + 2
|
| 64 |
gpt_history.append({"role": ChatRoles.SYSTEM, "content": instructions[step]})
|
| 65 |
bot_message = get_assistant_response(gpt_history)
|
| 66 |
if step in hardcoded:
|
|
|
|
| 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)
|
| 66 |
if step in hardcoded:
|