MatanYehudaDataAnalyst commited on
Commit
01329b0
verified
1 Parent(s): 5447d6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -13
app.py CHANGED
@@ -96,21 +96,30 @@ def run_ven_engine(budget, dietary, company, purpose, noise):
96
  """
97
 
98
  # ==========================================
99
- # 3. APP UI & CSS FIX (UNIVERSAL)
100
  # ==========================================
101
  ven_css = """
102
- /* Fix for Hugging Face Spaces: Target the container, not just body */
103
- .gradio-container { background-color: #0f172a !important; color: white !important; }
104
- body { background-color: #0f172a !important; color: white !important; }
105
-
106
- /* Force White Text for Headings/Labels */
107
- h1, h2, h3, h4, h5, h6 { color: white !important; }
108
- p, span, div, label { color: white; }
109
-
110
- /* Override: Force Black Text inside the Results Card */
111
- .gradio-html div { color: #000000 !important; }
112
- .gradio-html p { color: #000000 !important; }
113
- .gradio-html i { color: #000000 !important; }
 
 
 
 
 
 
 
 
 
114
  """
115
 
116
  with gr.Blocks(css=ven_css, title="VEN Project") as demo:
 
96
  """
97
 
98
  # ==========================================
99
+ # 3. APP UI & CSS FIX (THE NUCLEAR FIX)
100
  # ==========================================
101
  ven_css = """
102
+ /* 诪讻专讬讞 讗转 讻诇 讛拽讜谞讟讬讬谞专讬诐 诇讛讬讜转 讻讛讬诐, 讙诐 讘诪爪讘 Light Mode */
103
+ .gradio-container, .gradio-container.light, .gradio-container.dark {
104
+ background-color: #0f172a !important;
105
+ color: white !important;
106
+ }
107
+
108
+ /* 诪讜讜讚讗 砖讛专拽注 转诪讬讚 讻讛讛 */
109
+ body, .landing, .wrap, .interface-box {
110
+ background-color: #0f172a !important;
111
+ color: white !important;
112
+ }
113
+
114
+ /* 讟拽住讟讬诐 诇讘谞讬诐 诇讻诇 讛讻讜转专讜转 讜讛转讜讜讬讜转 */
115
+ h1, h2, h3, h4, h5, h6, label, span, p {
116
+ color: white !important;
117
+ }
118
+
119
+ /* 讛讞专讬讙 讛讬讞讬讚: 讻专讟讬住 讛转讜爪讗讛 砖诇谞讜 - 砖诐 讗谞讞谞讜 诪讻专讬讞讬诐 砖讞讜专 */
120
+ .gradio-html div, .gradio-html p, .gradio-html i, .gradio-html span, .gradio-html h1, .gradio-html h2 {
121
+ color: #000000 !important;
122
+ }
123
  """
124
 
125
  with gr.Blocks(css=ven_css, title="VEN Project") as demo: