kcelia commited on
Commit
84bd8b7
β€’
1 Parent(s): 1212782

chore: change default query

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,8 +108,8 @@ def encrypt_doc_fn(doc):
108
  client.load()
109
 
110
  encrypted_tokens = []
111
- tokens = re.findall(r"(\b[\w\.\/\-@]+\b|[\s,.!?;:'\"-]+)", ' '.join(doc))
112
-
113
  for token in tokens:
114
  if token.strip() and re.match(r"\w+", token):
115
  emb_x = MAPPING_DOC_EMBEDDING[token]
 
108
  client.load()
109
 
110
  encrypted_tokens = []
111
+ tokens = re.findall(r"(\b[\w\.\/\-@]+\b|[\s,.!?;:'\"-]+|\$\d+(?:\.\d+)?|\€\d+(?:\.\d+)?)", ' '.join(doc))
112
+
113
  for token in tokens:
114
  if token.strip() and re.match(r"\w+", token):
115
  emb_x = MAPPING_DOC_EMBEDDING[token]