Geonomic commited on
Commit
d68848a
·
verified ·
1 Parent(s): 833a256

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -239,7 +239,7 @@ def gradio_inference(dna_sequence, run_mapping):
239
  summary_html = f"""
240
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
241
  <h3 style="margin-top: 0; margin-bottom: 10px;"> Classification Summary <span style="color: #10b981; font-size: 0.85em; font-weight: normal;">(Deep Scan Complete)</span></h3>
242
- <div style="font-size: 1.15em; line-height: 1.8;">
243
  Final Classification: <b style="color: #0d6efd;">{summary_dict.get('Final Classification')}</b><br>
244
  Feature: <b>{summary_dict.get('Feature')}</b><br>
245
  """
@@ -325,10 +325,11 @@ with gr.Blocks(theme=gr.themes.Soft(), title="🧬 The Genomic Oracle 🧬", css
325
  dna_input = gr.Textbox(label="Enter DNA Sequence", placeholder="e.g., ATGCGATCGATCGATCG...", lines=10)
326
  run_mapping_cb = gr.Checkbox(value=False, label="Query NCBI BLAST for spatial mapping (Takes 1–3 mins)")
327
  submit_btn = gr.Button("🚀 Initialize Deep Scan", elem_id="scan_btn")
328
-
329
  with gr.Column(scale=1):
330
- output_summary = gr.Textbox(label="Classification Summary", lines=4, placeholder="Results will appear here...")
331
- stats_panel = gr.Textbox(label="Internal Pipeline Statistics", lines=4, placeholder="Results will appear here...")
 
332
  mapping_section = gr.Accordion("Genomic Context (BLAST/Ensembl)", open=False)
333
  with mapping_section:
334
  context_output = gr.Textbox(label="Mapping Results", lines=5, placeholder="Results will appear here...")
 
239
  summary_html = f"""
240
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
241
  <h3 style="margin-top: 0; margin-bottom: 10px;"> Classification Summary <span style="color: #10b981; font-size: 0.85em; font-weight: normal;">(Deep Scan Complete)</span></h3>
242
+ <div style="font-size: 1.15em; line-height: 1.8; placeholder: 'Results will appear here...'">
243
  Final Classification: <b style="color: #0d6efd;">{summary_dict.get('Final Classification')}</b><br>
244
  Feature: <b>{summary_dict.get('Feature')}</b><br>
245
  """
 
325
  dna_input = gr.Textbox(label="Enter DNA Sequence", placeholder="e.g., ATGCGATCGATCGATCG...", lines=10)
326
  run_mapping_cb = gr.Checkbox(value=False, label="Query NCBI BLAST for spatial mapping (Takes 1–3 mins)")
327
  submit_btn = gr.Button("🚀 Initialize Deep Scan", elem_id="scan_btn")
328
+
329
  with gr.Column(scale=1):
330
+ # Swapped from Textbox to HTML to allow our custom bolding and sizing!
331
+ output_summary = gr.HTML()
332
+ stats_panel = gr.HTML()
333
  mapping_section = gr.Accordion("Genomic Context (BLAST/Ensembl)", open=False)
334
  with mapping_section:
335
  context_output = gr.Textbox(label="Mapping Results", lines=5, placeholder="Results will appear here...")