Update app.py
Browse files
app.py
CHANGED
@@ -342,54 +342,56 @@ def main():
|
|
342 |
</div>
|
343 |
""", unsafe_allow_html=True)
|
344 |
|
345 |
-
# Modern Features section with
|
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 |
-
#
|
350 |
-
st.
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
</
|
360 |
</div>
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
</
|
|
|
370 |
</div>
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
</
|
|
|
380 |
</div>
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
</
|
|
|
390 |
</div>
|
391 |
-
|
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':
|