Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -242,14 +242,14 @@ def respond(
|
|
242 |
|
243 |
undetected_code = undetected[:3]
|
244 |
|
245 |
-
if history and history[-1][-1][21:24] == undetected_code:
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
|
254 |
# pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
|
255 |
# pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{1,3})\b'
|
|
|
242 |
|
243 |
undetected_code = undetected[:3]
|
244 |
|
245 |
+
# if history and history[-1][-1][21:24] == undetected_code:
|
246 |
+
# list_his = ""
|
247 |
+
# for his in history[::-1]:
|
248 |
+
# if his[-1][21:24] != undetected_code:
|
249 |
+
# break
|
250 |
+
# list_his = his[0] + "\n" + list_his
|
251 |
+
|
252 |
+
# message += "\n" + list_his
|
253 |
|
254 |
# pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
|
255 |
# pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{1,3})\b'
|