Spaces:
Paused
Paused
updated retry logic
Browse files
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
|