Yoel125 commited on
Commit
75b7587
·
verified ·
1 Parent(s): e3e85f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -226,15 +226,27 @@ custom_theme = gr.themes.Base(
226
  table_border_color_dark="#333333"
227
  )
228
 
229
- table_css = """
 
 
 
 
230
  table, table.dataset, tbody, thead, tr, td, th {
231
  background-color: #1e1e1e !important;
232
  color: #f0f4f8 !important;
233
  border-color: #333333 !important;
234
  }
 
 
 
 
 
 
 
 
235
  """
236
 
237
- with gr.Blocks(theme=custom_theme, css=table_css, title="SectorSync AI") as demo:
238
  gr.Markdown("# SectorSync AI")
239
  gr.Markdown("Cut Through the Market Noise — Find Your Next Winning Stock in Seconds. Discover high-growth companies matching your investment thesis using FAISS Vector Search and Generative AI.")
240
  gr.Markdown("*Similarity Score reflects how closely a company profile matches your query in AI-embedding space — a relative ranking signal, not a calibrated financial confidence rating.*")
 
226
  table_border_color_dark="#333333"
227
  )
228
 
229
+ # THE ULTIMATE CSS FIX for the invisible text!
230
+ # This ensures that no matter what mode the OS is in, the little boxes
231
+ # holding the Ticker and Similarity Score are forced to have a dark background
232
+ # and a bright emerald green text color so they pop out beautifully.
233
+ custom_css = """
234
  table, table.dataset, tbody, thead, tr, td, th {
235
  background-color: #1e1e1e !important;
236
  color: #f0f4f8 !important;
237
  border-color: #333333 !important;
238
  }
239
+
240
+ code, pre {
241
+ background-color: #2a2a2a !important;
242
+ color: #10b981 !important;
243
+ border: 1px solid #333333 !important;
244
+ padding: 2px 6px !important;
245
+ border-radius: 4px !important;
246
+ }
247
  """
248
 
249
+ with gr.Blocks(theme=custom_theme, css=custom_css, title="SectorSync AI") as demo:
250
  gr.Markdown("# SectorSync AI")
251
  gr.Markdown("Cut Through the Market Noise — Find Your Next Winning Stock in Seconds. Discover high-growth companies matching your investment thesis using FAISS Vector Search and Generative AI.")
252
  gr.Markdown("*Similarity Score reflects how closely a company profile matches your query in AI-embedding space — a relative ranking signal, not a calibrated financial confidence rating.*")