FredZhang7 commited on
Commit
c2214db
1 Parent(s): 270945b

fix repetitive replies

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def generate_prompt(instruction, input=None, history=None):
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 = (
33
  input.strip()
 
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, focus on the last sentence of the query."
31
  if input and len(input) > 0:
32
  input = (
33
  input.strip()