Spaces:
Running
Running
Update pipeline.py
Browse files- pipeline.py +11 -11
pipeline.py
CHANGED
|
@@ -355,17 +355,17 @@ def pipeline_with_gemini(accessions,niche_cases=None):
|
|
| 355 |
# filter the quality link
|
| 356 |
print("saveLinkFolder as sample folder id: ", sample_folder_id)
|
| 357 |
print("start the smart filter link")
|
| 358 |
-
try:
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
except:
|
| 367 |
-
|
| 368 |
-
|
| 369 |
print("this is links: ",links)
|
| 370 |
links = unique_preserve_order(links)
|
| 371 |
acc_score["source"] = links
|
|
|
|
| 355 |
# filter the quality link
|
| 356 |
print("saveLinkFolder as sample folder id: ", sample_folder_id)
|
| 357 |
print("start the smart filter link")
|
| 358 |
+
# try:
|
| 359 |
+
# success_process, output_process = run_with_timeout(smart_fallback.filter_links_by_metadata,args=(tem_links,sample_folder_id),kwargs={"accession":acc})
|
| 360 |
+
# if success_process:
|
| 361 |
+
# links = output_process
|
| 362 |
+
# print("yes succeed for smart filter link")
|
| 363 |
+
# else:
|
| 364 |
+
# print("no suceed, fallback to all tem links")
|
| 365 |
+
# links = tem_links
|
| 366 |
+
# except:
|
| 367 |
+
# links = tem_links
|
| 368 |
+
links = smart_fallback.filter_links_by_metadata(tem_links, saveLinkFolder=sample_folder_id, accession=acc)
|
| 369 |
print("this is links: ",links)
|
| 370 |
links = unique_preserve_order(links)
|
| 371 |
acc_score["source"] = links
|