Geonomic commited on
Commit
1aecee5
Β·
verified Β·
1 Parent(s): dcb2478

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -245,8 +245,8 @@ def gradio_inference(dna_sequence, run_mapping):
245
 
246
  # Build Custom HTML for Summary (Separated lines, bold values, Deep Scan Complete in title)
247
  summary_html = f"""
248
- <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
249
- <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>
250
  <div style="font-size: 1.15em; line-height: 1.8">
251
  Final Classification: <b style="color: #0d6efd;">{summary_dict.get('Final Classification')}</b><br>
252
  Feature: <b>{summary_dict.get('Feature')}</b><br>
@@ -335,17 +335,17 @@ with gr.Blocks(theme=gr.themes.Soft(), title="🧬 The Genomic Oracle 🧬", css
335
  submit_btn = gr.Button("πŸš€ Initialize Deep Scan", elem_id="scan_btn")
336
 
337
  with gr.Column(scale=1):
338
- # 🎨 Create default placeholder HTML so the boxes are visible on startup!
339
  default_summary = """
340
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
341
- <h3 style="margin-top: 0; margin-bottom: 10px;">βœ… Classification Summary</h3>
342
  <div style="color: #9ca3af; font-style: italic;">Results will appear here...</div>
343
  </div>
344
  """
345
 
346
  default_stats = """
347
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
348
- <h3 style="margin-top: 0; margin-bottom: 10px;">πŸ“Š Internal Pipeline Statistics</h3>
349
  <div style="color: #9ca3af; font-style: italic;">Results will appear here...</div>
350
  </div>
351
  """
 
245
 
246
  # Build Custom HTML for Summary (Separated lines, bold values, Deep Scan Complete in title)
247
  summary_html = f"""
248
+ <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 12px;">
249
+ <h3 style="margin-top: 0; margin-bottom: 10px;"> Classification Summary <span style="color: #10b981; font-size: 0.9em; font-weight: normal;">(Deep Scan Complete)</span></h3>
250
  <div style="font-size: 1.15em; line-height: 1.8">
251
  Final Classification: <b style="color: #0d6efd;">{summary_dict.get('Final Classification')}</b><br>
252
  Feature: <b>{summary_dict.get('Feature')}</b><br>
 
335
  submit_btn = gr.Button("πŸš€ Initialize Deep Scan", elem_id="scan_btn")
336
 
337
  with gr.Column(scale=1):
338
+ # Create default placeholder HTML so the boxes are visible on startup!
339
  default_summary = """
340
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
341
+ <h3 style="margin-top: 0; margin-bottom: 10px;">Classification Summary</h3>
342
  <div style="color: #9ca3af; font-style: italic;">Results will appear here...</div>
343
  </div>
344
  """
345
 
346
  default_stats = """
347
  <div style="border: 1px solid #4b5563; border-radius: 8px; padding: 15px; margin-bottom: 15px;">
348
+ <h3 style="margin-top: 0; margin-bottom: 10px;">Internal Pipeline Statistics</h3>
349
  <div style="color: #9ca3af; font-style: italic;">Results will appear here...</div>
350
  </div>
351
  """