Update demo/modules/search.py
Browse files- demo/modules/search.py +1 -1
demo/modules/search.py
CHANGED
@@ -129,7 +129,7 @@ def search(input: str, nprobe: int, topk: int, input_type: str, query_type: str,
|
|
129 |
for rank in top_ranks:
|
130 |
now_id = ids[rank]
|
131 |
if query_type == "text":
|
132 |
-
topk_ids.append(now_id)
|
133 |
else:
|
134 |
if db != "PDB":
|
135 |
# Provide link to uniprot website
|
|
|
129 |
for rank in top_ranks:
|
130 |
now_id = ids[rank]
|
131 |
if query_type == "text":
|
132 |
+
topk_ids.append(now_id.replace("|", "\\|"))
|
133 |
else:
|
134 |
if db != "PDB":
|
135 |
# Provide link to uniprot website
|