zac commited on
Commit
a506243
·
1 Parent(s): 4d3e3ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ pre_prompt = " The user and the AI are having a conversation : "
16
  def generate_text(input_text, history):
17
  print("history ",history)
18
  print("input ", input_text)
 
19
  if history == []:
20
  input_text_with_history = f"{pre_prompt}"+ "\n" + f"Q: {input_text} " + "\n" +" A:"
21
  else:
 
16
  def generate_text(input_text, history):
17
  print("history ",history)
18
  print("input ", input_text)
19
+ temp =""
20
  if history == []:
21
  input_text_with_history = f"{pre_prompt}"+ "\n" + f"Q: {input_text} " + "\n" +" A:"
22
  else: