Spaces:
Running
Running
Update pipeline.py
Browse files- pipeline.py +8 -8
pipeline.py
CHANGED
@@ -386,14 +386,14 @@ def pipeline_with_gemini(accessions,niche_cases=None):
|
|
386 |
# filter the quality link
|
387 |
print("saveLinkFolder as sample folder id: ", sample_folder_id)
|
388 |
print("start the smart filter link")
|
389 |
-
success_process, output_process = run_with_timeout(smart_fallback.filter_links_by_metadata,args=(tem_links,sample_folder_id),kwargs={"accession":acc})
|
390 |
-
if success_process:
|
391 |
-
|
392 |
-
|
393 |
-
else:
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
print("this is links: ",links)
|
398 |
links = unique_preserve_order(links)
|
399 |
acc_score["source"] = links
|
|
|
386 |
# filter the quality link
|
387 |
print("saveLinkFolder as sample folder id: ", sample_folder_id)
|
388 |
print("start the smart filter link")
|
389 |
+
# success_process, output_process = run_with_timeout(smart_fallback.filter_links_by_metadata,args=(tem_links,sample_folder_id),kwargs={"accession":acc})
|
390 |
+
# if success_process:
|
391 |
+
# links = output_process
|
392 |
+
# print("yes succeed for smart filter link")
|
393 |
+
# else:
|
394 |
+
# print("no suceed, fallback to all tem links")
|
395 |
+
# links = tem_links
|
396 |
+
links = smart_fallback.filter_links_by_metadata(tem_links, saveLinkFolder=sample_folder_id, accession=acc)
|
397 |
print("this is links: ",links)
|
398 |
links = unique_preserve_order(links)
|
399 |
acc_score["source"] = links
|