mackenzietechdocs commited on
Commit
d84d98d
·
1 Parent(s): de7a11d
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -444,9 +444,9 @@ footer span,
444
  }
445
  """
446
 
447
- demo = gr.Blocks(css=custom_css)
448
-
449
- with demo:
450
  # Header
451
  gr.HTML("""
452
  <div style="text-align: center; margin-bottom: 20px;">
 
444
  }
445
  """
446
 
447
+ with gr.Blocks() as demo:
448
+ # Inject CSS manually (gradio 6.0.2 removed the `css` kwarg on Blocks)
449
+ gr.HTML(f"<style>{custom_css}</style>")
450
  # Header
451
  gr.HTML("""
452
  <div style="text-align: center; margin-bottom: 20px;">