Spaces:
Running
Running
Update mtdna_backend.py
Browse files- mtdna_backend.py +2 -5
mtdna_backend.py
CHANGED
@@ -23,12 +23,9 @@ import threading
|
|
23 |
# return classify_sample_location(accession)
|
24 |
|
25 |
@lru_cache(maxsize=3600)
|
26 |
-
def pipeline_classify_sample_location_cached(accession,stop_flag):
|
27 |
print("inside pipeline_classify_sample_location_cached, and [accession] is ", [accession])
|
28 |
-
|
29 |
-
print(f"🛑 Skipped {accession} mid-pipeline.")
|
30 |
-
return []
|
31 |
-
return pipeline.pipeline_with_gemini([accession],stop_flag)
|
32 |
|
33 |
# Count and suggest final location
|
34 |
# def compute_final_suggested_location(rows):
|
|
|
23 |
# return classify_sample_location(accession)
|
24 |
|
25 |
@lru_cache(maxsize=3600)
|
26 |
+
def pipeline_classify_sample_location_cached(accession,stop_flag=None):
|
27 |
print("inside pipeline_classify_sample_location_cached, and [accession] is ", [accession])
|
28 |
+
return pipeline.pipeline_with_gemini([accession],stop_flag=stop_flag)
|
|
|
|
|
|
|
29 |
|
30 |
# Count and suggest final location
|
31 |
# def compute_final_suggested_location(rows):
|