Spaces:
Paused
Paused
debug
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def retry_last_answer(
|
|
150 |
past_key_values
|
151 |
):
|
152 |
|
153 |
-
if
|
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
|