minh-4T commited on
Commit
8723e94
·
verified ·
1 Parent(s): 8193b5a

Update core/models.py

Browse files
Files changed (1) hide show
  1. core/models.py +1 -0
core/models.py CHANGED
@@ -7,5 +7,6 @@ embeddings = HuggingFaceEmbeddings(
7
  model_kwargs={'device': 'cpu'},
8
  encode_kwargs={'normalize_embeddings': True}
9
  )
 
10
 
11
  llm = None
 
7
  model_kwargs={'device': 'cpu'},
8
  encode_kwargs={'normalize_embeddings': True}
9
  )
10
+ cross_encoder = CrossEncoder(CROSS_ENCODER_MODEL, device='cpu')
11
 
12
  llm = None