ysharma HF staff commited on
Commit
28497a4
1 Parent(s): 136a64f

updated retry logic

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -164,7 +164,8 @@ def retry_last_answer(
164
 
165
  if chatbot and history:
166
  # Removing the previous conversation from chat
167
- chatbot.pop(-1)
 
168
  #history[-1] = (history[-1][0],)
169
  # Setting up a flag to capture a retry
170
  RETRY_FLAG = True
 
164
 
165
  if chatbot and history:
166
  # Removing the previous conversation from chat
167
+ #chatbot.pop(-1)
168
+ chatbot[-1] = (chatbot[-1][0],)
169
  #history[-1] = (history[-1][0],)
170
  # Setting up a flag to capture a retry
171
  RETRY_FLAG = True