FlameF0X commited on
Commit
882961f
·
verified ·
1 Parent(s): 4b4b0b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -89,10 +89,11 @@ custom_css = """
89
  }
90
  """
91
 
92
- # Inject CSS via head parameter to avoid keyword argument conflicts in some Gradio versions
93
- head_content = f"<style>{custom_css}</style>"
94
-
95
- with gr.Blocks(head=head_content, theme=gr.themes.Soft()) as demo:
 
96
  # Header
97
  with gr.Row():
98
  gr.Markdown(
 
89
  }
90
  """
91
 
92
+ # We remove 'css' and 'head' arguments from Blocks() and inject via gr.HTML instead
93
+ # to ensure compatibility across different Gradio versions.
94
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
95
+ gr.HTML(f"<style>{custom_css}</style>")
96
+
97
  # Header
98
  with gr.Row():
99
  gr.Markdown(