Spaces:
Build error
Build error
File size: 908 Bytes
8857dec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
# App Title
st.title("π Streamlit Expander Example")
# Display the final answer prominently
st.markdown("## π‘ **Final Answer**")
st.success("This is the final response generated from the system.")
# Expander for additional details
with st.expander("π **View Relevance Analysis**"):
st.write("β
**Context 1 - Score: 0**")
st.write("**Reasoning:** This context contains sufficient information to answer the query.")
st.write("β
**Context 2 - Score: 1**")
st.write("**Reasoning:** This context lacks clarity and does not fully address the query.")
with st.expander("π **View Retrieved Contexts**"):
st.write("πΉ **Context 1:** This is a relevant passage from the document.")
st.write("πΉ **Context 2:** This is another relevant passage.")
# Footer
st.markdown("---")
st.markdown("π‘ **Click on expanders to reveal more details!**")
|