jonathanjordan21 commited on
Commit
c7752e9
·
verified ·
1 Parent(s): 92debac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- 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'
 
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'