Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,11 @@ def compute_final_suggested_location(rows):
|
|
17 |
candidates = [
|
18 |
row.get("Predicted Location", "").strip()
|
19 |
for row in rows
|
20 |
-
if row.get("Predicted Location", "").strip().lower() not in ["", "sample id not found"]
|
21 |
] + [
|
22 |
row.get("Inferred Region", "").strip()
|
23 |
for row in rows
|
24 |
-
if row.get("Inferred Region", "").strip().lower() not in ["","unknown"]
|
25 |
]
|
26 |
|
27 |
if not candidates:
|
@@ -93,7 +93,6 @@ def summarize_results(accession):
|
|
93 |
summary = "\n".join(summary_lines)
|
94 |
|
95 |
return rows, summary
|
96 |
-
print(summarize_results("KU131308"))
|
97 |
# Gradio UI
|
98 |
with gr.Blocks() as interface:
|
99 |
gr.Markdown("# 🧬 mtDNA Location Classifier (MVP)")
|
|
|
17 |
candidates = [
|
18 |
row.get("Predicted Location", "").strip()
|
19 |
for row in rows
|
20 |
+
if row.get("Predicted Location", "").strip().lower() not in ["", "sample id not found", "unknown"]
|
21 |
] + [
|
22 |
row.get("Inferred Region", "").strip()
|
23 |
for row in rows
|
24 |
+
if row.get("Inferred Region", "").strip().lower() not in ["", "sample id not found", "unknown"]
|
25 |
]
|
26 |
|
27 |
if not candidates:
|
|
|
93 |
summary = "\n".join(summary_lines)
|
94 |
|
95 |
return rows, summary
|
|
|
96 |
# Gradio UI
|
97 |
with gr.Blocks() as interface:
|
98 |
gr.Markdown("# 🧬 mtDNA Location Classifier (MVP)")
|