LovnishVerma commited on
Commit
19c9347
·
verified ·
1 Parent(s): 918037c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -601,6 +601,12 @@ def create_app():
601
  border: 1px solid #e9ecef;
602
  margin-top: 20px;
603
  }
 
 
 
 
 
 
604
  """
605
 
606
  with gr.Blocks(
@@ -610,16 +616,15 @@ def create_app():
610
  ) as app:
611
 
612
  # Header
613
- gr.HTML("""
614
- <div class="quiz-header">
615
- <h1 style="margin: 0; font-size: 2.5em;">🖥️ CCC Plus Quiz App</h1>
616
- <p style="margin: 10px 0 0 0; font-size: 1.2em; opacity: 0.9;">
617
- Computer Concepts Plus - Interactive Quiz Platform
618
- </p>
619
- <p style="margin: 5px 0 0 0; opacity: 0.8;">
620
- NIELIT Chandigarh • National Institute of Electronics & Information Technology
621
- </p>
622
  </div>
 
623
  """)
624
 
625
  with gr.Row():
 
601
  border: 1px solid #e9ecef;
602
  margin-top: 20px;
603
  }
604
+ /* Logo */
605
+ #logo-img {
606
+ max-height: 70px;
607
+ width: auto;
608
+ border-radius: 8px;
609
+ }
610
  """
611
 
612
  with gr.Blocks(
 
616
  ) as app:
617
 
618
  # Header
619
+ gr.HTML(f"""
620
+ <div class="quiz-header">
621
+ <img id="logo-img" src="{'nielit_logo.png' if os.path.exists('nielit_logo.png') else ''}" alt="NIELIT Logo" />
622
+ <div class="quiz-header-text">
623
+ <h1>🖥️ CCC Plus Quiz App</h1>
624
+ <p>Computer Concepts Plus - Interactive Quiz Platform</p>
625
+ <p>NIELIT Chandigarh National Institute of Electronics & Information Technology</p>
 
 
626
  </div>
627
+ </div>
628
  """)
629
 
630
  with gr.Row():