jonathanjordan21 commited on
Commit
8420bc3
·
verified ·
1 Parent(s): 1ca4016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -48,6 +48,8 @@ def respond(
48
  ):
49
  # messages = [{"role": "system", "content": system_message}]
50
  pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
 
 
51
  matches = re.findall(pattern, message)
52
 
53
  plate_numbers = ", ".join([" ".join(x) for i,x in enumerate(matches)])
@@ -58,7 +60,7 @@ def respond(
58
 
59
  request_code = codes[scores.argmax()]
60
 
61
- return "Request code number: " + request_code[:3] + "\nRequest detail: " + request_code[6:] + "\n Plate numbers: "
62
 
63
  # for val in history:
64
  # if val[0]:
 
48
  ):
49
  # messages = [{"role": "system", "content": system_message}]
50
  pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
51
+ pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
52
+
53
  matches = re.findall(pattern, message)
54
 
55
  plate_numbers = ", ".join([" ".join(x) for i,x in enumerate(matches)])
 
60
 
61
  request_code = codes[scores.argmax()]
62
 
63
+ return "Request code number: " + request_code[:3] + "\nRequest detail: " + request_code[6:] + "\n Plate numbers: " + plate_numbers
64
 
65
  # for val in history:
66
  # if val[0]: