ysharma HF Staff commited on
Commit
6880ee4
·
1 Parent(s): 2b79822
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -47,6 +47,8 @@ def predict(inputs, chatbot):
47
 
48
  print(f'inputs is - {inputs}')
49
  print(f'chatbot is - {chatbot}')
 
 
50
  messages = []
51
  for conv in chatbot:
52
  user = conv[0]
 
47
 
48
  print(f'inputs is - {inputs}')
49
  print(f'chatbot is - {chatbot}')
50
+ if chatbot[0][-1] is None: #[["hi there'", None]]
51
+ chatbot=[]
52
  messages = []
53
  for conv in chatbot:
54
  user = conv[0]