jonathanjordan21 commited on
Commit
6a8ac6d
·
verified ·
1 Parent(s): 28515db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,10 +51,10 @@ def respond(
51
  ):
52
  global codes_emb
53
 
54
- print(history)
 
55
 
56
- # messages = [{"role": "system", "content": system_message}]
57
- pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
58
  pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{1,3})\b'
59
 
60
  matches = re.findall(pattern, message)
 
51
  ):
52
  global codes_emb
53
 
54
+ for his in history:
55
+ message += "\n" + his[0]
56
 
57
+ # pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{3})\b'
 
58
  pattern = r'\b([A-Z]{1,2})\s?(\d{4})\s?([A-Z]{1,3})\b'
59
 
60
  matches = re.findall(pattern, message)