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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -441,7 +441,7 @@ with gr.Blocks(
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 ----
@@ -451,7 +451,18 @@ with gr.Blocks(
451
  <h4 style="color:#37474f;">HEC Generative AI Hackathon – Pakistan</h4>
452
  <h4 style="color:#00695c;">Team Chinar AI (AJK)</h4>
453
  </div>
454
- """)
 
 
 
 
 
 
 
 
 
 
 
455
 
456
  # ---- INSTRUCTION TEXT ----
457
  gr.Markdown("""
 
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 ----
 
451
  <h4 style="color:#37474f;">HEC Generative AI Hackathon – Pakistan</h4>
452
  <h4 style="color:#00695c;">Team Chinar AI (AJK)</h4>
453
  </div>
454
+ """)'''
455
+ # ---- CENTERED LOGO + HEADER ----
456
+ with gr.Row():
457
+ with gr.Column(scale=1):
458
+ gr.HTML("""
459
+ <div style="text-align:center;">
460
+ <img src="file/{logo}" width="300">
461
+ <h1 style="color:#0d47a1; margin-top:15px;">🏥 TyphoidGuard AI</h1>
462
+ <h4 style="color:#37474f; margin:5px 0;">HEC Generative AI Hackathon – Pakistan</h4>
463
+ <h4 style="color:#00695c; margin:5px 0;">Team Chinar AI (AJK)</h4>
464
+ </div>
465
+ """.format(logo=LOGO_PATH))
466
 
467
  # ---- INSTRUCTION TEXT ----
468
  gr.Markdown("""