camparchimedes commited on
Commit
28418e7
ยท
verified ยท
1 Parent(s): 632d0fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -7
app.py CHANGED
@@ -105,17 +105,27 @@ def setup_multiple_chains():
105
  # --regex for alphanum. "LLLLLLxxxxxx", i.e. booking_id |==> 308.9 trillion unique possibilities
106
  BOOKING_ID = r'\b[A-Z]{6}\d{6}\b'
107
 
108
- # TODO: add all booking-related keywords from JSON data
109
  BOOKING_KEYWORDS = [
110
- "booking", "bestilling", "bestillingsnummer",
111
- "booking_id", "booking ID","booking nummer",
112
- "navn", "etternavn", "kunde", "customer",
113
- "utestรฅende belรธp", "faktura", "cost", "price",
114
- "date", "dato", "checkin", "checkout",
115
- "address", "adresse", "user id", "bruker_id", "bruker id",
 
 
 
 
 
 
 
 
 
116
  ]
117
 
118
 
 
119
  # --wrapper function around the @cl.on_message decorator; chain trigger(s)
120
  @cl.on_message
121
  async def handle_message(message: cl.Message):
 
105
  # --regex for alphanum. "LLLLLLxxxxxx", i.e. booking_id |==> 308.9 trillion unique possibilities
106
  BOOKING_ID = r'\b[A-Z]{6}\d{6}\b'
107
 
108
+ # --keywords based from email-data
109
  BOOKING_KEYWORDS = [
110
+ "booking",
111
+ "bestillingsnummer",
112
+ "bookingen",
113
+ "ordrenummer",
114
+ "reservation",
115
+ "rezerwacji",
116
+ "bookingreferanse",
117
+ "rezerwacja",
118
+ "logg inn",
119
+ "booket",
120
+ "reservation number",
121
+ "bestilling",
122
+ "order number",
123
+ "booking ID",
124
+ "identyfikacyjny pล‚atnoล›ci"
125
  ]
126
 
127
 
128
+
129
  # --wrapper function around the @cl.on_message decorator; chain trigger(s)
130
  @cl.on_message
131
  async def handle_message(message: cl.Message):