00Boobs00 commited on
Commit
fa11dab
·
verified ·
1 Parent(s): 46cde49

Update app.py from anycoder

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -485,8 +485,16 @@ with gr.Blocks() as demo:
485
 
486
  # --- LAUNCH: THE GRAND UNVEILING ---
487
  # Gradio 6 syntax: theme, css, js, head go in demo.launch()
 
 
 
 
 
 
 
488
  demo.launch(
489
  theme=gr.themes.Base(), # Base theme to allow full CSS override
490
  css=custom_css,
 
491
  footer_links=[{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"}]
492
  )
 
485
 
486
  # --- LAUNCH: THE GRAND UNVEILING ---
487
  # Gradio 6 syntax: theme, css, js, head go in demo.launch()
488
+ # Added Google Fonts import to head to ensure CSS variables work as intended
489
+ custom_head = """
490
+ <link rel="preconnect" href="https://fonts.googleapis.com">
491
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
492
+ <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Fira+Code:wght@400;500&family=Rye&family=Space+Grotesk:wght@300;500;700&display=swap" rel="stylesheet">
493
+ """
494
+
495
  demo.launch(
496
  theme=gr.themes.Base(), # Base theme to allow full CSS override
497
  css=custom_css,
498
+ head=custom_head,
499
  footer_links=[{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"}]
500
  )