Adir Gozlan commited on
Commit
b596009
1 Parent(s): 6d5ec26

fix cross encoder conditinoal

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def bot(history, api_kind, cross_enc):
47
  logger.info('Retrieving documents...')
48
  # Retrieve documents relevant to query
49
  documents = []
50
- if not cross_enc:
51
  document_start = perf_counter()
52
 
53
  documents = retrieve(query, TOP_K)
 
47
  logger.info('Retrieving documents...')
48
  # Retrieve documents relevant to query
49
  documents = []
50
+ if cross_enc is None:
51
  document_start = perf_counter()
52
 
53
  documents = retrieve(query, TOP_K)