Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
#
|
109 |
BOOKING_KEYWORDS = [
|
110 |
-
"booking",
|
111 |
-
"
|
112 |
-
"
|
113 |
-
"
|
114 |
-
"
|
115 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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):
|