KvrParaskevi commited on
Commit
d767fb3
·
verified ·
1 Parent(s): 8f92564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,9 +50,9 @@ chat_history = []
50
  def chat_output(inputs):
51
  output = chat_interface(inputs)
52
  answer = output.split('AI:')
53
- if(len(answer) == 1):
54
- chat_history.append((inputs, answer[0]))
55
- chat_history.append((inputs, answer[0]))
56
  return chat_history
57
 
58
  template = """You are an AI having conversation with a human.
 
50
  def chat_output(inputs):
51
  output = chat_interface(inputs)
52
  answer = output.split('AI:')
53
+ if(len(answer) == 2):
54
+ chat_history.append((inputs, answer[1]))
55
+ chat_history.append((inputs, answer[1]))
56
  return chat_history
57
 
58
  template = """You are an AI having conversation with a human.