Commit
•
657c0d3
1
Parent(s):
2a58fc4
prompt test x4
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def generate_prompt(instruction, input=None, history=None):
|
|
25 |
for pair in history:
|
26 |
if pair[0] is not None and pair[1] is not None and len(pair[1]) > 0:
|
27 |
input += f"{pair[0]}\n{pair[1]}\n"
|
28 |
-
input = input[:-1] + "\n" + f"{instruction}
|
29 |
-
instruction = "Based on the Conversation History,
|
30 |
if input and len(input) > 0:
|
31 |
input = (
|
32 |
input.strip()
|
|
|
25 |
for pair in history:
|
26 |
if pair[0] is not None and pair[1] is not None and len(pair[1]) > 0:
|
27 |
input += f"{pair[0]}\n{pair[1]}\n"
|
28 |
+
input = input[:-1] + "\"\n" + f"{instruction}"
|
29 |
+
instruction = "Based on the Conversation History, comment on the History as an Assistant."
|
30 |
if input and len(input) > 0:
|
31 |
input = (
|
32 |
input.strip()
|