jjin6573 commited on
Commit
299aa65
·
verified ·
1 Parent(s): 5fb4617

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1133,6 +1133,11 @@ custom_css = """
1133
  color: #ffffff !important;
1134
  }
1135
 
 
 
 
 
 
1136
  /* ===== GLOBAL STYLES ===== */
1137
  body {
1138
  background: linear-gradient(180deg, #0a0a1a 0%, #0f0f23 100%) !important;
@@ -1140,6 +1145,10 @@ body {
1140
  font-family: system-ui, -apple-system, sans-serif;
1141
  }
1142
 
 
 
 
 
1143
  .gradio-container {
1144
  max-width: 100% !important;
1145
  width: 100% !important;
@@ -2063,7 +2072,7 @@ button.custom-action-btn:hover,
2063
  }
2064
  """
2065
 
2066
- with gr.Blocks(theme=gr.themes.Default(primary_hue="violet", secondary_hue="indigo", neutral_hue="slate"), css="body { --color-scheme: dark !important; }") as demo:
2067
  # Inject custom CSS and decorative elements (positioned fixed, no DOM space)
2068
  gr.HTML(f"""
2069
  <style>{custom_css}</style>
 
1133
  color: #ffffff !important;
1134
  }
1135
 
1136
+ /* ===== FORCE DARK MODE ===== */
1137
+ :root {
1138
+ color-scheme: dark !important;
1139
+ }
1140
+
1141
  /* ===== GLOBAL STYLES ===== */
1142
  body {
1143
  background: linear-gradient(180deg, #0a0a1a 0%, #0f0f23 100%) !important;
 
1145
  font-family: system-ui, -apple-system, sans-serif;
1146
  }
1147
 
1148
+ .dark, [data-theme="dark"] {
1149
+ color-scheme: dark !important;
1150
+ }
1151
+
1152
  .gradio-container {
1153
  max-width: 100% !important;
1154
  width: 100% !important;
 
2072
  }
2073
  """
2074
 
2075
+ with gr.Blocks() as demo:
2076
  # Inject custom CSS and decorative elements (positioned fixed, no DOM space)
2077
  gr.HTML(f"""
2078
  <style>{custom_css}</style>