Commit
•
270945b
1
Parent(s):
5141f22
fix string
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def generate_prompt(instruction, input=None, history=None):
|
|
26 |
for pair in history:
|
27 |
if pair[0] is not None and pair[1] is not None and len(pair[1]) > 0:
|
28 |
input += f"{pair[0]},{pair[1]},"
|
29 |
-
input = input[
|
30 |
instruction = "Generate a Response using the following query."
|
31 |
if input and len(input) > 0:
|
32 |
input = (
|
|
|
26 |
for pair in history:
|
27 |
if pair[0] is not None and pair[1] is not None and len(pair[1]) > 0:
|
28 |
input += f"{pair[0]},{pair[1]},"
|
29 |
+
input = input[:-1] + f". {instruction}"
|
30 |
instruction = "Generate a Response using the following query."
|
31 |
if input and len(input) > 0:
|
32 |
input = (
|