aneesqumar commited on
Commit
b7f9f01
·
verified ·
1 Parent(s): 66c4d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -285,7 +285,7 @@ def generate_pdf(*inputs):
285
 
286
  # ---- LOGO ----
287
  if os.path.exists(LOGO_PATH):
288
- elements.append(Image(LOGO_PATH, width=1.5*inch, height=1.5*inch))
289
  elements.append(Spacer(1,0.2*inch))
290
 
291
  elements.append(Paragraph("<b>TyphoidGuard AI Clinical Report</b>", styles["Title"]))
@@ -440,8 +440,10 @@ with gr.Blocks(
440
  ) as demo:
441
 
442
  # ---- LOGO (Guaranteed to Display in HF) ----
 
 
443
  gr.Image(LOGO_PATH, width=300, show_label=False, container=False)
444
-
445
  # ---- CENTERED HEADER ----
446
  gr.Markdown("""
447
  <div class="center-header">
 
285
 
286
  # ---- LOGO ----
287
  if os.path.exists(LOGO_PATH):
288
+ elements.append(Image(LOGO_PATH, width=1.6*inch, height=1.2*inch))
289
  elements.append(Spacer(1,0.2*inch))
290
 
291
  elements.append(Paragraph("<b>TyphoidGuard AI Clinical Report</b>", styles["Title"]))
 
440
  ) as demo:
441
 
442
  # ---- LOGO (Guaranteed to Display in HF) ----
443
+ # ---- LOGO (Centered) ----
444
+ gr.Markdown('<div style="text-align:center;">')
445
  gr.Image(LOGO_PATH, width=300, show_label=False, container=False)
446
+ gr.Markdown('</div>')
447
  # ---- CENTERED HEADER ----
448
  gr.Markdown("""
449
  <div class="center-header">