mgbam commited on
Commit
c8c7ffd
·
verified ·
1 Parent(s): 80676d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +66 -7
app.py CHANGED
@@ -318,7 +318,7 @@ def process_question(user_question, app, config):
318
  return events
319
 
320
  # ------------------------------
321
- # Streamlit App UI
322
  # ------------------------------
323
  def main():
324
  st.set_page_config(
@@ -330,29 +330,88 @@ def main():
330
  st.markdown("""
331
  <style>
332
  .stApp {
333
- background-color: #f8f9fa;
 
334
  }
 
 
 
 
 
 
335
  .stButton > button {
336
  width: 100%;
337
  margin-top: 20px;
 
 
 
 
 
 
338
  }
 
 
 
 
 
 
339
  .data-box {
340
  padding: 20px;
341
  border-radius: 10px;
342
  margin: 10px 0;
 
 
343
  }
 
344
  .research-box {
345
- background-color: #e3f2fd;
346
- border-left: 5px solid #1976d2;
347
  }
 
348
  .dev-box {
349
- background-color: #e8f5e9;
350
- border-left: 5px solid #43a047;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  }
352
  </style>
353
  """, unsafe_allow_html=True)
354
 
355
  with st.sidebar:
 
 
 
 
 
 
 
 
356
  st.header("📚 Available Data")
357
 
358
  st.subheader("Research Database")
@@ -401,7 +460,7 @@ def main():
401
  - What are the latest advancements in AI research?
402
  - What is the status of Project A?
403
  - What are the current trends in machine learning?
404
- """)
405
 
406
  if __name__ == "__main__":
407
  main()
 
318
  return events
319
 
320
  # ------------------------------
321
+ # Streamlit App UI (Dark Theme)
322
  # ------------------------------
323
  def main():
324
  st.set_page_config(
 
330
  st.markdown("""
331
  <style>
332
  .stApp {
333
+ background-color: #1a1a1a;
334
+ color: #ffffff;
335
  }
336
+
337
+ .stTextArea textarea {
338
+ background-color: #2d2d2d !important;
339
+ color: #ffffff !important;
340
+ }
341
+
342
  .stButton > button {
343
  width: 100%;
344
  margin-top: 20px;
345
+ background-color: #4CAF50;
346
+ color: white;
347
+ border: none;
348
+ padding: 10px 24px;
349
+ border-radius: 4px;
350
+ transition: all 0.3s;
351
  }
352
+
353
+ .stButton > button:hover {
354
+ background-color: #45a049;
355
+ transform: scale(1.02);
356
+ }
357
+
358
  .data-box {
359
  padding: 20px;
360
  border-radius: 10px;
361
  margin: 10px 0;
362
+ background-color: #2d2d2d;
363
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
364
  }
365
+
366
  .research-box {
367
+ border-left: 5px solid #2196F3;
 
368
  }
369
+
370
  .dev-box {
371
+ border-left: 5px solid #4CAF50;
372
+ }
373
+
374
+ .st-expander {
375
+ background-color: #2d2d2d;
376
+ border: 1px solid #3d3d3d;
377
+ border-radius: 4px;
378
+ }
379
+
380
+ .st-expander label {
381
+ color: #ffffff !important;
382
+ }
383
+
384
+ .stAlert {
385
+ background-color: #2d2d2d !important;
386
+ }
387
+
388
+ .st-bb {
389
+ color: white !important;
390
+ }
391
+
392
+ h1, h2, h3, h4, h5, h6 {
393
+ color: #ffffff !important;
394
+ }
395
+
396
+ .stMarkdown {
397
+ color: #e0e0e0;
398
+ }
399
+
400
+ .stWarning {
401
+ background-color: #423a2d !important;
402
  }
403
  </style>
404
  """, unsafe_allow_html=True)
405
 
406
  with st.sidebar:
407
+ st.markdown("""
408
+ <style>
409
+ .sidebar .sidebar-content {
410
+ background-color: #2d2d2d;
411
+ }
412
+ </style>
413
+ """, unsafe_allow_html=True)
414
+
415
  st.header("📚 Available Data")
416
 
417
  st.subheader("Research Database")
 
460
  - What are the latest advancements in AI research?
461
  - What is the status of Project A?
462
  - What are the current trends in machine learning?
463
+ """, unsafe_allow_html=True)
464
 
465
  if __name__ == "__main__":
466
  main()