Geonomic commited on
Commit
85d61f2
Β·
verified Β·
1 Parent(s): 9180f3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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: {context['location']}",
256
- f"Strand: {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,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...")