jdesiree commited on
Commit
4e3f076
·
verified ·
1 Parent(s): 7f8e7b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -518,7 +518,6 @@ def create_interface():
518
  """Creates and configures the complete Gradio interface."""
519
 
520
  with gr.Blocks(
521
- css=custom_css,
522
  title="EduBot",
523
  fill_width=True,
524
  fill_height=True,
@@ -529,13 +528,9 @@ def create_interface():
529
  gr.HTML('<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>')
530
  gr.HTML(mathjax_config)
531
 
532
- # Force full height container with aggressive CSS
533
- gr.HTML('<style>.main-container { height: 100vh !important; display: flex !important; flex-direction: column !important; }</style>')
534
-
535
  with gr.Column(elem_classes=["main-container"]):
536
  # Title Section
537
- with gr.Row(height="10vh"):
538
- gr.HTML('<div class="title-header"><h1>🎓 EduBot</h1></div>')
539
 
540
  # Chat Section
541
  with gr.Row():
@@ -570,6 +565,9 @@ def create_interface():
570
  send.click(respond_and_update, [msg, chatbot], [chatbot, msg])
571
  clear.click(clear_chat, outputs=[chatbot, msg])
572
 
 
 
 
573
  return demo
574
 
575
  # ===============================================================================
 
518
  """Creates and configures the complete Gradio interface."""
519
 
520
  with gr.Blocks(
 
521
  title="EduBot",
522
  fill_width=True,
523
  fill_height=True,
 
528
  gr.HTML('<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>')
529
  gr.HTML(mathjax_config)
530
 
 
 
 
531
  with gr.Column(elem_classes=["main-container"]):
532
  # Title Section
533
+ gr.HTML('<div class="title-header"><h1>🎓 EduBot</h1></div>')
 
534
 
535
  # Chat Section
536
  with gr.Row():
 
565
  send.click(respond_and_update, [msg, chatbot], [chatbot, msg])
566
  clear.click(clear_chat, outputs=[chatbot, msg])
567
 
568
+ # Apply CSS at the very end for highest precedence
569
+ gr.HTML(f'<style>{custom_css}</style>')
570
+
571
  return demo
572
 
573
  # ===============================================================================