Tonic commited on
Commit
b96e233
β€’
1 Parent(s): 78e3da5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -44,7 +44,9 @@ def _parse_text(text):
44
  text = "".join(lines)
45
  return text
46
 
47
- def predict(_chatbot, task_history):
 
 
48
  if not task_history:
49
  return _chatbot
50
 
 
44
  text = "".join(lines)
45
  return text
46
 
47
+ def predict(_chatbot, task_history, user_input):
48
+ query = user_input if user_input else task_history[-1][0]
49
+ print("User: " + _parse_text(query))
50
  if not task_history:
51
  return _chatbot
52