Omar ID EL MOUMEN
commited on
Commit
·
1b1857d
1
Parent(s):
097a608
Fix batch requests
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ def find_documents_batch(request: BatchDocRequest):
|
|
220 |
missing = []
|
221 |
|
222 |
for doc_id in request.doc_ids:
|
223 |
-
finder = TsgDocFinder() if
|
224 |
result = finder.search_document(doc_id)
|
225 |
if "not found" not in result and "Could not" not in result:
|
226 |
results[doc_id] = result
|
|
|
220 |
missing = []
|
221 |
|
222 |
for doc_id in request.doc_ids:
|
223 |
+
finder = TsgDocFinder() if doc_id[0].isalpha() else SpecDocFinder()
|
224 |
result = finder.search_document(doc_id)
|
225 |
if "not found" not in result and "Could not" not in result:
|
226 |
results[doc_id] = result
|