Adir Gozlan
commited on
Commit
•
b596009
1
Parent(s):
6d5ec26
fix cross encoder conditinoal
Browse files
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
|
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)
|