ysharma HF staff commited on
Commit
b542c0f
1 Parent(s): 3d98930
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ def retry_last_answer(
150
  past_key_values
151
  ):
152
 
153
- if chat and history:
154
  # Removing the previous conversation from chat
155
  chatbot.pop(-1)
156
  # Removing bot response from the history
 
150
  past_key_values
151
  ):
152
 
153
+ if chatbot and history:
154
  # Removing the previous conversation from chat
155
  chatbot.pop(-1)
156
  # Removing bot response from the history