VyLala commited on
Commit
cd2c93f
·
verified ·
1 Parent(s): 5985138

Update mtdna_backend.py

Browse files
Files changed (1) hide show
  1. mtdna_backend.py +10 -10
mtdna_backend.py CHANGED
@@ -215,17 +215,17 @@ async def summarize_results(accession, stop_flag=None, niche_cases=None):
215
  print("before pipeline, len of save df: ", len(save_df))
216
  if niche_cases: niche_cases = ", ".join(niche_cases)
217
  print("this is niche case inside summarize result: ", niche_cases)
218
- #outputs = await pipeline_classify_sample_location_cached(accession, stop_flag, save_df, niche_cases)
219
  print("do the dummy output")
220
- outputs = {"KU131308":{"isolate":"BRU18",
221
- "country":{"brunei":['ncbi','rag_llm-The text mentions "BRU18 Brunei Borneo" in a table listing various samples...']},
222
- "sample_type":{"modern":['rag_llm-The text mentions "BRU18 Brunei Borneo" in a table listing various samples']},
223
- "query_cost":9.754999999999999e-05,
224
- "time_cost":'24.776 seconds',
225
- "source":['https://doi.org/10.1007/s00439-015-1620-z'],
226
- "file_chunk":"filechunk",
227
- "file_all_output":"fileoutput",
228
- 'specific location':{'brunei':["some explain"]}}}
229
  if stop_flag is not None and stop_flag.value:
230
  print(f"🛑 Skipped {accession} mid-pipeline.")
231
  return []
 
215
  print("before pipeline, len of save df: ", len(save_df))
216
  if niche_cases: niche_cases = ", ".join(niche_cases)
217
  print("this is niche case inside summarize result: ", niche_cases)
218
+ outputs = await pipeline_classify_sample_location_cached(accession, stop_flag, save_df, niche_cases)
219
  print("do the dummy output")
220
+ # outputs = {"KU131308":{"isolate":"BRU18",
221
+ # "country":{"brunei":['ncbi','rag_llm-The text mentions "BRU18 Brunei Borneo" in a table listing various samples...']},
222
+ # "sample_type":{"modern":['rag_llm-The text mentions "BRU18 Brunei Borneo" in a table listing various samples']},
223
+ # "query_cost":9.754999999999999e-05,
224
+ # "time_cost":'24.776 seconds',
225
+ # "source":['https://doi.org/10.1007/s00439-015-1620-z'],
226
+ # "file_chunk":"filechunk",
227
+ # "file_all_output":"fileoutput",
228
+ # 'specific location':{'brunei':["some explain"]}}}
229
  if stop_flag is not None and stop_flag.value:
230
  print(f"🛑 Skipped {accession} mid-pipeline.")
231
  return []