Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,10 +252,10 @@ def gradio_inference(dna_sequence, run_mapping):
|
|
| 252 |
context_output = f"β Mapping failed: {context['error']}"
|
| 253 |
elif "location" in context:
|
| 254 |
context_lines = [
|
| 255 |
-
f"Location:
|
| 256 |
-
f"Strand:
|
| 257 |
f"Coordinates: {context['start']:,} β {context['end']:,}",
|
| 258 |
-
f"Notes:
|
| 259 |
]
|
| 260 |
context_output = "\n".join(context_lines)
|
| 261 |
else:
|
|
@@ -314,8 +314,8 @@ with gr.Blocks(theme=gr.themes.Soft(), title="𧬠The Genomic Oracle π§¬", css
|
|
| 314 |
submit_btn = gr.Button("π Initialize Deep Scan", elem_id="scan_btn")
|
| 315 |
|
| 316 |
with gr.Column(scale=1):
|
| 317 |
-
output_summary = gr.Textbox(label="Classification Summary", lines=4)
|
| 318 |
-
stats_panel = gr.Textbox(label="Internal Pipeline Statistics", lines=4)
|
| 319 |
mapping_section = gr.Accordion("Genomic Context (BLAST/Ensembl)", open=False)
|
| 320 |
with mapping_section:
|
| 321 |
context_output = gr.Textbox(label="Mapping Results", lines=5, placeholder="Results will appear here...")
|
|
|
|
| 252 |
context_output = f"β Mapping failed: {context['error']}"
|
| 253 |
elif "location" in context:
|
| 254 |
context_lines = [
|
| 255 |
+
f"Location:\t{context['location']}",
|
| 256 |
+
f"Strand:\t{context['strand']}",
|
| 257 |
f"Coordinates: {context['start']:,} β {context['end']:,}",
|
| 258 |
+
f"Notes: {context['metadata']}"
|
| 259 |
]
|
| 260 |
context_output = "\n".join(context_lines)
|
| 261 |
else:
|
|
|
|
| 314 |
submit_btn = gr.Button("π Initialize Deep Scan", elem_id="scan_btn")
|
| 315 |
|
| 316 |
with gr.Column(scale=1):
|
| 317 |
+
output_summary = gr.Textbox(label="Classification Summary", lines=4, placeholder="Results will appear here...")
|
| 318 |
+
stats_panel = gr.Textbox(label="Internal Pipeline Statistics", lines=4, placeholder="Results will appear here...")
|
| 319 |
mapping_section = gr.Accordion("Genomic Context (BLAST/Ensembl)", open=False)
|
| 320 |
with mapping_section:
|
| 321 |
context_output = gr.Textbox(label="Mapping Results", lines=5, placeholder="Results will appear here...")
|