KvrParaskevi commited on
Commit
c3774b8
1 Parent(s): 36ca46b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ chat_history = []
50
  def chat_output(inputs):
51
  output = chat_interface(inputs)
52
  answer_after_input = output.split('AI:')
53
- answer = answer_after_input.split('Human:')
54
  chat_history.append((inputs, answer[0]))
55
  return chat_history
56
 
 
50
  def chat_output(inputs):
51
  output = chat_interface(inputs)
52
  answer_after_input = output.split('AI:')
53
+ answer = answer_after_input[1].split('Human:')
54
  chat_history.append((inputs, answer[0]))
55
  return chat_history
56