waghib commited on
Commit
ee95781
Β·
verified Β·
1 Parent(s): 5e1efaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -41
app.py CHANGED
@@ -342,54 +342,56 @@ def main():
342
  </div>
343
  """, unsafe_allow_html=True)
344
 
345
- # Modern Features section with gradient backgrounds and icons
346
  st.markdown("<br><br>", unsafe_allow_html=True)
347
  st.markdown("<h2 style='text-align:center;'>Key Features</h2>", unsafe_allow_html=True)
348
 
349
- # Modern feature list with gradient backgrounds using emojis instead of Font Awesome
350
- st.markdown("""
351
- <div class="features-container">
352
- <div class="feature-item">
353
- <div class="feature-icon">
354
- <span style="font-size: 24px;">πŸ”</span>
355
- </div>
356
- <div class="feature-content">
357
- <h3>Intelligent Retrieval</h3>
358
- <p>Finds the most relevant clinical information from the MIMIC-IV-Ext dataset</p>
359
- </div>
360
  </div>
361
-
362
- <div class="feature-item">
363
- <div class="feature-icon">
364
- <span style="font-size: 24px;">🧠</span>
365
- </div>
366
- <div class="feature-content">
367
- <h3>Advanced Reasoning</h3>
368
- <p>Applies clinical knowledge to generate accurate diagnostic insights</p>
369
- </div>
 
370
  </div>
371
-
372
- <div class="feature-item">
373
- <div class="feature-icon">
374
- <span style="font-size: 24px;">πŸ“„</span>
375
- </div>
376
- <div class="feature-content">
377
- <h3>Source Transparency</h3>
378
- <p>Provides references to all clinical sources used in generating responses</p>
379
- </div>
 
380
  </div>
381
-
382
- <div class="feature-item">
383
- <div class="feature-icon">
384
- <span style="font-size: 24px;">πŸŒ“</span>
385
- </div>
386
- <div class="feature-content">
387
- <h3>Dark/Light Theme Compatible</h3>
388
- <p>Optimized interface that works seamlessly in both dark and light themes</p>
389
- </div>
 
390
  </div>
391
- </div>
392
- """, unsafe_allow_html=True)
393
 
394
  # Chat interface
395
  elif st.session_state.page == 'chat':
 
342
  </div>
343
  """, unsafe_allow_html=True)
344
 
345
+ # Modern Features section with Streamlit native components
346
  st.markdown("<br><br>", unsafe_allow_html=True)
347
  st.markdown("<h2 style='text-align:center;'>Key Features</h2>", unsafe_allow_html=True)
348
 
349
+ # Create a 2x2 grid for features using Streamlit columns
350
+ col1, col2 = st.columns(2)
351
+
352
+ # Feature 1
353
+ with col1:
354
+ st.markdown("""
355
+ <div style="background: linear-gradient(135deg, rgba(72, 126, 176, 0.1), rgba(72, 126, 176, 0.2));
356
+ padding: 20px; border-radius: 10px; height: 100%;
357
+ border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 20px;">
358
+ <h3>πŸ” Intelligent Retrieval</h3>
359
+ <p>Finds the most relevant clinical information from the MIMIC-IV-Ext dataset</p>
360
  </div>
361
+ """, unsafe_allow_html=True)
362
+
363
+ # Feature 2
364
+ with col2:
365
+ st.markdown("""
366
+ <div style="background: linear-gradient(135deg, rgba(72, 126, 176, 0.1), rgba(72, 126, 176, 0.2));
367
+ padding: 20px; border-radius: 10px; height: 100%;
368
+ border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 20px;">
369
+ <h3>🧠 Advanced Reasoning</h3>
370
+ <p>Applies clinical knowledge to generate accurate diagnostic insights</p>
371
  </div>
372
+ """, unsafe_allow_html=True)
373
+
374
+ # Feature 3
375
+ with col1:
376
+ st.markdown("""
377
+ <div style="background: linear-gradient(135deg, rgba(72, 126, 176, 0.1), rgba(72, 126, 176, 0.2));
378
+ padding: 20px; border-radius: 10px; height: 100%;
379
+ border: 1px solid rgba(255, 255, 255, 0.1);">
380
+ <h3>πŸ“„ Source Transparency</h3>
381
+ <p>Provides references to all clinical sources used in generating responses</p>
382
  </div>
383
+ """, unsafe_allow_html=True)
384
+
385
+ # Feature 4
386
+ with col2:
387
+ st.markdown("""
388
+ <div style="background: linear-gradient(135deg, rgba(72, 126, 176, 0.1), rgba(72, 126, 176, 0.2));
389
+ padding: 20px; border-radius: 10px; height: 100%;
390
+ border: 1px solid rgba(255, 255, 255, 0.1);">
391
+ <h3>πŸŒ“ Dark/Light Theme Compatible</h3>
392
+ <p>Optimized interface that works seamlessly in both dark and light themes</p>
393
  </div>
394
+ """, unsafe_allow_html=True)
 
395
 
396
  # Chat interface
397
  elif st.session_state.page == 'chat':